Ceil (open)

Returns the smallest integer FLOAT value larger than a value.

Syntax

LOADLIB "wh::float.whlib";

FLOAT FUNCTION Ceil(FLOAT value)

Parameters

FLOAT value

The FLOAT value to be rounded up

Return value

FLOAT

The rounded up value of @italic value

Description

The FLOAT value is rounded up to the smallest whole number (integer) larger than the value. The result is also a FLOAT value.

Examples

// The FLOAT value will be 2.0
FLOAT f := Ceil(1.1);

// The FLOAT value will be -5.0
FLOAT f := Ceil(-5.6)