Skip to content

ceiling

Round up to a multiple of significance.

v = ceiling(number, significance)

Returns number rounded up (away from zero) to the nearest multiple of significance. significance must have the same sign as number.

ceiling(2.5, 1) % 3
ceiling(7.3, 0.5) % 7.5
ceiling(-2.5, -1) % -3
  • floor — Round toward negative infinity.
  • mround — Round to the nearest multiple of a given value.
  • roundup — Round away from zero with specified precision.