Round to multiple of 10n
roundn is not recommended. Use
roundn(x,n) rounds each element of
x to the nearest multiple of
n must be
scalar, and integer-valued. For complex
x, the imaginary and real
parts are rounded independently. For
n = 0,
gives the same result as
round. That is,
Round pi to the nearest hundredth.
ans = 3.1400
Round the equatorial radius of the Earth, 6378137 meters, to the nearest kilometer.
ans = 6378000