Get Started
·
Register
·
Login
Enjoy BYOND? Contribute today!
Posts
ID:173805
Creations
round()
in
Developer Help
[Tips]
ID:173805
Nov 13 2003, 12:24 am
Enigmaster2002
Is there a "true" way to round a number? Like the way we were taught in gradeschool, if the tenths digit is above five, it would round the integer up?
#1
Nov 13 2003, 4:35 am
Cinnom
round(number,1) will round it to the nearest 1. X.5 will be rounded up, anything under it will be rounded down.
#2
Nov 13 2003, 6:16 pm
In response to
Cinnom
(#1)
Jon88
What about X.49?
#3
Nov 13 2003, 7:31 pm
In response to
Jon88
(#2)
Lummox JR
Jon88 wrote:
What about X.49?
That gets rounded down of course.
Lummox JR
Copyright © 2013 BYOND. All rights reserved.