Whatever message this page gives is out now! Go check it out!

Sin

Last update:
May 18, 2026

escription

Calculates the sine of an angle that is entered in radians.

Returns

A number; the sine of the angle.

Category

Function syntax

Sin(number)

See also

ASin CosACosTanAtnPi

Parameters

Parameter
Description
number
Angle, in radians for which to calculate the sine.

Usage

The range of the result is -1 to 1. To convert degrees to radians, multiply degrees by p/180. To convert radians to degrees, multiply radians by 180/p.
Note: Because the function uses floating point arithmetic, it returns a very small number (such as 6.12323399574E-017) for angles that should produce 0. To test for a 0 value, check whether the value is less than 0.0000000000001.
Example
<cfscript>
    val=0.5
    writeOutput("The sin of " & val & " is: " & sin(val))
</cfscript>
Output
The sin of 0.5 is: 0.479425538604

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page