forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@ROUND() function

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jan 10, 2005 2:39 am    Post subject: @ROUND() function Reply with quote

I think it would be nice to have an @ROUND() function that allows you to
round a number. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Mon Jan 10, 2005 6:55 am    Post subject: Reply with quote

That would be a really nice function. As solution that works use the @format function:

%A = 9.63
warn @format(%A,100.0)

It seems to round correctly, try setting %A to 9.1 and it rounds to 9, at it's current value of 9.63 it rounds to 10. Smile If you set the 100.0 to 100.1 it will let you round to the first decimal place. Seems really like a better solution for rounding as it lets you round decimals and/or whole numbers.
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jan 10, 2005 5:53 pm    Post subject: Reply with quote

I think that's the reason there isn't a @round() function.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Jan 16, 2005 4:37 pm    Post subject: Reply with quote

Looks cool PK Smile

I think still it would be nice to have a @round() function built in natively. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Sun Jan 16, 2005 6:20 pm    Post subject: Reply with quote

If there was, it would have to be @fround(), because all the functions for working with floating point numbers have names starting with f... Smile
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jan 17, 2005 3:05 am    Post subject: Reply with quote

That would be fine with me Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group