round.next

round.next(a: number) 🡒 number, pure function

Rounds a number following ‘away from zero’ rounding convention - rounds to the next ‘integer’). Thus, round.next(0.5) == 1 and round.next(1.5) == 2. Rounding numbers is a mathematical operation, rather than a presentational setting.

Example:

table T = with
  [| as N  |]
  [| -0.5 |]
  [|  0.5 |]
  [|  1.5 |]

show table "" a1b3 with
  T.N
  round.next(T.N)