Sin Procedure

Returns the sine of the given angle x, which is specified in radians. To specify an angle in degrees, multiply the angle by PI/180 to get the equivalent in radians.
Warning: The input number is internally converted to a less precise 64-bit binary floating-point format. The result is computed in this format and then converted back to TMBASIC's 128-bit decimal floating-point format. These conversions may cause a loss of precision.
Declaration
function Sin(x as Number) as Number

Parameters

Return value

Number — Sine of x.

Example

Code
print Sin(0)
print Sin(PI/2)
Output
0
1