OxL Reference

method f32.exp

e raised to the power x.

Example:

oxl✓ checked in CI
fn main() io {
  let x: f32 = 0.0
  print("{x.exp()}")
}
Output
1.0
pub(api) fn exp() -> f32

Complexity. O(1).

Since. 1.0.0-beta

Returns

f32

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/numbers.oxl:4333

See also