ID:140877
 
Code:
round(23.9412-4)


Problem description:
outputs 19

is it just me or is that suppose to be 20?
Yes, you're stupid because you don't know how BYOND rounds :P

BYOND always rounds to the floor, unless you supply it with a second arg. You can also have it round up.

mob/verb/Test()
world << round(3.9999) //outputs 3
world << round(3.9999,1) //outputs 4
world << -round(-3.1) //outputs 4

/*
floor
normal rounding
ceiling
*/
In response to Jeff8500
so does that mean round(3.4,1) = 3?
In response to Nategrant
Yeah.
In response to Nategrant
It explains all this in the DM reference.