📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

COS



Returns the cosine of x, where x is given in radians.

Syntax

COS( <x> )

Examples

SELECT COS(PI()); ┌───────────┐ │ cos(pi()) │ ├───────────┤ │ -1 │ └───────────┘

Was this page helpful?