Method in arith · Overflowing coil-stdlib

Overflowing::overflowing_pow

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

The wrapped a ** exp, and whether it wrapped. Panics with negative exponent when exp < 0, like **.

Parameters#

NameType
aS
expint

Returns#

(S, bool)

See also#

↑ ↓ navigate ↵ open