Method in arith · Saturating coil-stdlib

Saturating::saturating_pow

fn saturating_pow(S a, int exp) -> S
Import
use arith::{Saturating};
Source: src/arith.hy

a ** exp clamped to the type’s range. Panics with negative exponent when exp < 0, like **.

Parameters#

NameType
aS
expint

Returns#

S

See also#

↑ ↓ navigate ↵ open