powerAsDecimal abstract method

Decimal powerAsDecimal(
  1. DynamicNumber exponent
)

This number to the power of DynamicNumber exponent as Decimal.

If exponent is a Decimal (without zero decimal part, Decimal.isDecimalPartZero), the precision will depend on dart:math pow function.

Implementation

Decimal powerAsDecimal(DynamicNumber<dynamic> exponent);