← All docs

sin()

Returns the sine of a number (radians).

sin()

function sin(float $num): float

Returns the sine of a number (radians).

Parameters:

  • $num (float)

Returns: float

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how sin is implemented in the compiler, see the internals page.