method f32.sqrt
The square root (NaN for a negative number).
Example:
fn main() io {
let x: f32 = 16.0
print("{x.sqrt()}")
}Output
4.0
pub(api) fn sqrt() -> f32Complexity. O(1).
Since. 1.0.0-beta
Returns
f32
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/numbers.oxl:4228