Skip to main content

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.

Signature

pub trait Sqrt

Examples

use core::num::traits::Sqrt;

assert!(9_u8.sqrt() == 3);

Trait functions

sqrt

Computes the square root of a number.

Signature

fn sqrt(self: T) -> SqrtTarget

Trait types

Target

The type of the result of the square root operation.

Signature

type Target;