Share via


RoundHalfAwayFromZero function

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;

References

Wikipedia article - Rounding