FLOOR Function [Numeric]

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

Syntax

FLOORnumeric-expression )

Parameters

Parameters

Parameter

Description

numeric-expression

The number, usually a float.

Returns

DOUBLE

Standards and Compatibility

  • SQL—Vendor extension to ISO/ANSI SQL grammar.

  • Sybase—Compatible with Adaptive Server Enterprise.

Example

The following statement returns the value 123.00:

SELECT FLOOR ( 123 ) FROM iq_dummy

The following statement returns the value 123:

SELECT FLOOR ( 123.45 ) FROM iq_dummy

The following statement returns the value -124.00.

SELECT FLOOR ( -123.45 ) FROM iq_dummy
Related reference
CEILING Function [Numeric]
CEIL Function [Numeric]