Rounds to the next integer or multiple. In case the fraction is half the multiple, the function rounds away from zero. In case a 'multiple' is supplied, the value will be rounded to the next multiple of that value.
MRound( x ) MRound( x, #multiple )
X | Number to be rounded. |
---|---|
#multiple | The multiple the value should be rounded to. Zero is not allowed here |
Numeric value
MRound (3.2) //3 MRound (1.5) //2 MRound (-7.7) //-8 MRound (3.2, 2) //2 MRound (1.5, 2) //2 MRound (-7.7, 5) //-10