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
<variable> = <number>.sin();
(OR)
<variable> = sin(<number> );
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
number= 90;
sinValue = number.sin(); // returns 0.8939966636005579
sinValue = number.sin(); // returns 0.8939966636005579