← All built-ins / sin()
sin()
sin(mixed $number): float
Parameters
| Name | Type | Description |
|---|---|---|
| $number | float|int | angle in radians |
Return value
Sine as float.
Example
echo round(sin(0), 3), " ", round(sin(M_PI / 2), 3);
0 1
| Name | Type | Description |
|---|---|---|
| $number | float|int | angle in radians |
Sine as float.
echo round(sin(0), 3), " ", round(sin(M_PI / 2), 3);
0 1