You are viewing content for 5.1 | 5.0 | 4.9 | 4.8 | 4.7 | 4.6 | 4.5 | 4.4 | 4.3 | Previous Releases


floor

Returns the whole number less than or equal to its argument.

Example

Find the largest integer that is less than or equal to 5.9.

floor(5.9)

Syntax

floor(double expr x)
  • x : expression returning double

Returns

int

Notes

Function floor evaluates its argument and finds the largest integer that is less than the argument.


© Incorta, Inc. All Rights Reserved.