Skip to content

roundup

Round away from zero with specified precision.

v = roundup(number, num_digits)

Rounds number away from zero. Same precision conventions as rounddown.

roundup(3.2, 0) % 4
roundup(31415, -3) % 32000
  • rounddown — Round toward zero with specified precision.
  • ceiling — Round up to a multiple of significance.
  • round — Round to the nearest integer (or to a specified number of digits).