pub fn sqrt<T>(item: T, error: T) -> Twhere
T: Fixed,Expand description
Numerical square root of a fixed point scalar. Slow but acurate method.
§Argument
error- The gratest allowed error in the result.
§Example
use fixed::{types::extra::U20, FixedI32};
use integer_array::utility as util;
let x = util::sqrt( FixedI32::<U20>::from_num(110), FixedI32::<U20>::from_num(0.025) );
assert_eq!{ x.to_num::<f32>(), 10.488159f32 };