Round
Round(expr)round a given
exprto nearest integer.
Round(expr, factor)round a given
exprup to the next nearest multiple of afactor.
See
Examples
>> Round(-3.6)-4
>> Round(1.234512, 0.01)1.23
>> Round(1.235512, 0.01)1.24Round to nearest multiple of 5
>> Round({12.5, 62.1, 68.3, 74.5, 80.7}, 5){10,60,70,75,80}Related terms
IntegerPart, Ceiling, Floor, FractionalPart
Implementation status
- ✅ - full supported