Returns the sine value of radians value {n}. {n}can be any real number in the range of -1e308 <= {n} <= 1e308. If null is passed as an argument, sin() returns null.
sin({n}) takes the following syntax.
SELECT SIN(N) as ALIAS
FROM DATASET;
Example
This example takes the sine of 90 degrees.
SELECT SIN(RADIANS(90)) as sinValue
FROM "Opportunity"
LIMIT 1;
| sinValue |
|---|
| 1 |