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

SQL Anywhere 10.0.1 » UltraLite - Database Management and Reference » UltraLite SQL Function Reference » Alphabetical list of functions

CONVERT function [Data type conversion] Next Page

COS function [Numeric]

Converts a number from radians to cosine.


COS( numeric-expression )


numeric-expression    The angle, in radians.


The COS function returns the cosine of the angle given by numeric-expression.

This function converts its argument to DOUBLE, performs the computation in double-precision floating point, and returns a DOUBLE as the result. If the parameter is NULL, the result is NULL.

See also
Standards and compatibility

The following statement returns the value of the cosine of an angle 0.52 radians.

SELECT COS( 0.52 );