← All docs

deg2rad()

Converts a degree value to radians.

deg2rad()

function deg2rad(float $num): float

Converts a degree value to radians.

Parameters:

  • $num (float)

Returns: float

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

Internals

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