FLOOR function [Numeric]

Returns the floor of (largest integer not greater than) a number.

Syntax
FLOOR( numeric-expression )
Parameters
  • numeric-expression   The value, usually a FLOAT.

Remarks

This function converts its arguments to DOUBLE, performs the computation in double-precision floating point, and returns a DOUBLE as the result.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statements returns a Floor value of 123

SELECT FLOOR (123);

The following statements returns a Floor value of 123

SELECT FLOOR (123.45);

The following statements returns a Floor value of -124

SELECT FLOOR (-123.45);