Function u256_sqrt

Source
pub fn u256_sqrt(input: &U256) -> U256
Expand description

Calculates the square root of a U256 value, returning another U256.

ยงExamples

use primitive_types::U256;
use neo3::neo_types::u256_sqrt;
let input = U256::from(16);
let sqrt = u256_sqrt(&input);
assert_eq!(sqrt, U256::from(4));