Floor (open)

Returns the largest integer FLOAT value smaller than a value.

Syntax

LOADLIB "wh::float.whlib";

FLOAT FUNCTION Floor(FLOAT value)

Parameters

FLOAT value

The FLOAT value to rounded down

Return value

FLOAT

The rounded down value of @italic value

Description

The FLOAT value is rounded down to the largest whole number (integer) smaller than the value. The result is also a FLOAT value.

Examples

// The FLOAT value will be 1.0
FLOAT f := Floor(1.9);

// The FLOAT value will be -6.0
FLOAT f := Floor(-5.4)