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

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » SQL Functions » Alphabetical list of functions

FIRST_VALUE function [Aggregate] Next Page

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