OxL Reference

method f64.pow

x raised to the power o.

Example:

oxl✓ checked in CI
fn main() io {
  let x: f64 = 2.0
  print("{x.pow(10.0)}")
}
Output
1024.0
pub(api) fn pow(o: f64) -> f64

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
of64

Returns

f64

Effects

none declared (pure unless the body says otherwise)

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

See also