dos_ceil - dalefugier/DOSLib GitHub Wiki

Calculates the ceiling of a number.

Syntax

(dos_ceil number)

Parameters

number

The number.

Returns

The value representing the smallest integer that is greater than or equal to the number, if successful.

nil on error.

Example

Command: (dos_ceil -1.6)
-1
Command: (dos_ceil -1.5)
-1
Command: (dos_ceil -1.4)
-1
Command: (dos_ceil 1.4)
2
Command: (dos_ceil 1.5)
2
Command: (dos_ceil 1.6)
2