RPTools

From MapToolDoc

ceiling

ceiling() Function

Returns the number passed in if it is an integer, otherwise it returns the number rounded up to the next integer.

Usage

  1. [h: val = ceil(num)]
  2. [h: val = ceiling(num)]

Examples

  1. [r: ceil(10)]

Returns 10.

  1. [r: ceil(1.2)]

Returns 2.

  1. [r: ceil(-1.2)]

Returns -1.