pow10 function

BigInt pow10(
  1. int exponent
)

Calculate 10 raised to the power of exponent

Implementation

BigInt pow10(int exponent) {
  if (exponent == 0) return BigInt.one;
  return BigInt.from(math.pow(10, exponent));
}