← All docs

exp()

Returns e raised to the power of a number.

exp()

function exp(float $num): float

Returns e raised to the power of a number.

Parameters:

  • $num (float)

Returns: float

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

Internals

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