ceiling


ceiling(r)
      

Return the integer closest to the real r toward positive infinity. If r is infinite or NaN, ceiling will return r.

Examples:


ceiling(1.2)
// 2.
ceiling(2/3)
// 1
ceiling(inf)
// +inf.0
      

Also see:

floor
abs


Core Module Index | Contents