#PB_Round_Nearest as default parameter for Round()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

#PB_Round_Nearest as default parameter for Round()

Post by AND51 »

Well, if you read the title, what should I add? :D
Yet, there is no default parameter, so IMHO it's better to have one than to have none.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

1Up

And besides of that, the manual says:
Description

Round the specified float number according to the given mode. If Mode = 0, it round down the number (keep only the integer part). If Mode = 1, it round up the Number
please replace 0 and 1 by the constants name... :)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply