For the complete documentation index, see llms.txt. This page is also available as Markdown.

SIN

Calculate sine. This function returns the sine of an angle given in radians.

Syntax

SIN(X)

Description

Returns the sine of X, where X is given in radians.

Examples

SELECT SIN(1.5707963267948966);
+-------------------------+
| SIN(1.5707963267948966) |
+-------------------------+
|                       1 |
+-------------------------+

SELECT SIN(PI());
+----------------------+
| SIN(PI())            |
+----------------------+
| 1.22460635382238e-16 |
+----------------------+

SELECT ROUND(SIN(PI()));
+------------------+
| ROUND(SIN(PI())) |
+------------------+
|                0 |
+------------------+

This page is licensed: GPLv2, originally from fill_help_tables.sql

spinner

Last updated

Was this helpful?