fp.sqrt
fn sqrt(self: T) -> T;Args
Panics
Returns
Examples
use orion::numbers::{FP16x16, FP16x16Impl, FixedTrait};
fn sqrt_fp_example() -> FP16x16 {
// We instantiate FixedTrait points here.
let a = FixedTrait::new_unscaled(9, false);
// We can call `round` function as follows.
a.sqrt()
}
>>> {mag: 196608, sign: false} // = 3Last updated