FLOOR function [Numeric]

Returns the largest integer not greater than a number.

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

Returns

DOUBLE

Remarks

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

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);