← All built-ins / tan()

tan()

tan(mixed $number): float

Parameters

NameTypeDescription
$numberfloat|intangle in radians

Return value

Tangent as float.

Example

echo round(tan(0), 3), " ", round(tan(M_PI / 4), 3);
0 1

See also

sin()cos()atan()