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

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » Alphabetical list of functions

 

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