Skip to main content

logos_pow_exact

Function logos_pow_exact 

Source
pub fn logos_pow_exact(
    a: impl Into<LogosInt>,
    b: impl Into<LogosInt>,
) -> LogosInt
Expand description

Exact integer exponentiation — the i64 fast path promotes to BigInt on overflow (2 ** 100). Loud canonical panic on a negative exponent (an Int can’t hold the fractional result), mirroring the interpreter.