FLOOR()

Rounds down a number to the next integer

Syntax

FLOOR (nNumber) -> nDownRoundedNumber

Arguments

<nNumber> number to round down

Returns

<nDownRoundedNumber> the rounded number

Description

The function FLOOR() determines the biggest integer that is smaller than <nNumber>.
Examples
      ? floor (1.1)   --> 1.0
      ? floor (-1.1)  --> -2.0
Tests
      floor (1.1)  == 1.0
      floor (-1.1) == -2.0
Status

Ready

Compliance

FLOOR() is compatible with CT3's FLOOR().

Platforms

All

Files

Source is math.c, library is libct.

See Also