sin()
Table of Contents
Overview
The sin() function takes a number as an argument, and returns the trigonometric sine of that number (angle measured in radians).
Return Type
- Decimal
Syntax
(OR)
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | DECIMAL |
<number> | The number whose sine value will be returned. | NUMBER or DECIMAL |
Examples
sinValue = number.sin(); // returns 0.8939966636005579