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