Skip to content

roundn

geometry · scripts/geometry/roundn.m

: y = roundn (x, n)

Round each element of x to the nearest multiple of 10^n. n must be a real scalar integer. Ties round away from zero, matching Mapping Toolbox roundn / core round.