cairo_vm::math_utils

Function isqrt

Source
pub fn isqrt(n: &BigUint) -> Result<BigUint, MathError>
Expand description

Returns the integer square root of the nonnegative integer n. This is the floor of the exact square root of n. Unlike math.sqrt(), this function doesn’t have rounding error issues.