In the classic flipper ink! sc example I tried within a function
let dist2: f32 = f32::sqrt(4.0);
and got the error " function or associated item not found in f32 "
Bearing in mind this https://doc.rust-lang.org/std/primitive.f32.html#method.sqrt and failing that, after installing and trying this https://crates.io/crates/sp-arithmetic that I found here What's the best way to compute square root in Substrate? but creates conflicts and fails to compile flipper.
I am puzzled of how to proceed. Any suggestions please?