bigIntToDecimal function

double bigIntToDecimal(
  1. BigInt value,
  2. int decimals
)

bigIntToDecimal converts a given big int to decimal number

Implementation

double bigIntToDecimal(BigInt value, int decimals) {
  return value.toDouble() / pow(10, decimals);
}