Round() - Make #PB_Round_Nearest default

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Round() - Make #PB_Round_Nearest default

Post by c4s »

Feature request: Make #PB_Round_Nearest the default rounding mode for the Round() function.

Right now we always have to type this:

Code: Select all

Debug Round(1.5, #PB_Round_Nearest)
However, this would be less to type and still easy to understand as rounding to the nearest value is generally the most desired behavoir:

Code: Select all

Debug Round(1.5)
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!