← All built-ins / sin()

sin()

sin(mixed $number): float

Parameters

NameTypeDescription
$numberfloat|intangle in radians

Return value

Sine as float.

Example

echo round(sin(0), 3), " ", round(sin(M_PI / 2), 3);
0 1

See also

cos()tan()deg2rad()