# sin() function

The sin() function calculates the sine
of an angle specified in degrees.

## Syntax

```
sin(num.exp)
```

## Parameter(s)

| num.exp | Specifies the angle used to calculate the sine. If the expression is less than 0 or greater than 360 degrees, mod(exp,360) is used to adjust it to this range before the sine is calculated. |
| --- | --- |

## Description

The result of this function
is a fraction in the range -1 to 1.

Note:

- This function is only accurate to 3 digits.

- Trigonometric function results can vary slightly between FlashBASIC or BASIC compilers.

## See also

- [cos() function](https://d3codex.com/pickbasic-flashbasic/cos-function/)
- [BASIC functions](https://d3codex.com/pickbasic-flashbasic/basic-functions/)
- [Numeric expressions](https://d3codex.com/pickbasic-flashbasic/numeric-expressions/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [tan() function](https://d3codex.com/pickbasic-flashbasic/tan-function/)

---
Source: https://d3codex.com/pickbasic-flashbasic/sin-function/ - part of the D3Codex reference.
