toDecimal method

double toDecimal(
  1. int places
)

Implementation

double toDecimal(int places) {
  return double.parse(toStringAsFixed(places));
}