Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fully qualified name: Std.Math.RoundHalfAwayFromZero
function RoundHalfAwayFromZero(value : Double) : Int
Summary
Returns the nearest integer to the specified number. Half is rounded away from zero. For example: RoundHalfAwayFromZero(-3.7) = -4, RoundHalfAwayFromZero(3.5) = 4;