A trait for computing the square root of a number.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
A trait for computing the square root of a number.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
pub trait Sqrt
use core::num::traits::Sqrt;
assert!(9_u8.sqrt() == 3);
fn sqrt(self: T) -> SqrtTarget
type Target;
Was this page helpful?