SIN()

All functions > MATH > SIN()

Returns the sine of an angle in radians.

Signatures

Sine

Returns: Sine value in [-1, 1]

SIN(radians: T) → DOUBLE
sql
ParameterTypeRequiredDescription
radiansTYesAngle in radians

With:

  • T : Floating-point type (FLOAT, DOUBLE)

Signature notes:

  • Input must be in radians; use RADIANS() to convert from degrees
  • Period of 2π; odd function: SIN(-x) = -SIN(x)
  • Returns NULL if the input is NULL

Examples

FeatureQL
SELECT
    f1 := SIN(0E0), -- sin(0) = 0
    f2 := SIN(1.5707963267948966E0), -- sin(π/2) = 1
    f3 := SIN(0.7853981633974483E0), -- sin(π/4) = √2/2
    f4 := SIN(0.5235987755982988E0) -- sin(π/6) ≈ 0.5
;
Result
f1 VARCHARf2 VARCHARf3 VARCHARf4 VARCHAR
0.01.00.70710678118654750.49999999999999994

Last update at: 2026/05/26 17:22:09