How can the square root of a u128 be calculated? The resulting number can be a u128 after some rounding.
f64 has a f64::sqrt function, but I dont think we should be converting u128 to f64.
How can the square root of a u128 be calculated? The resulting number can be a u128 after some rounding.
f64 has a f64::sqrt function, but I dont think we should be converting u128 to f64.
Copyright © 2021 Jogjafile Inc.
You can use the
Rootstrait from the num crate (or directly from the num-integer crate):