Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » SQL functions (E-O)

 

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