Skip to main content

pow

Function pow 

Source
pub fn pow(a: Value, b: Value) -> DogeResult
Expand description

** — exponentiation. Int raised to a non-negative Int stays an Int (arbitrary precision); a Decimal raised to a non-negative Int stays an exact Decimal; a negative exponent or any Float operand promotes to Float. 0 ** <negative> is a catchable division by zero, and an exponent too large to materialize is a catchable overflow.