# toStringAsFixed()
String toStringAsFixed(int fractionDigits);
assert(123.456.toStringAsFixed(2) == '123.46');
api.dart.dev/stable/2.12.2/dart-core/num/toStringAsFixed.html
toStringAsFixed method - num class - dart:core library - Dart API
String toStringAsFixed (int fractionDigits ) A decimal-point string-representation of this number. Converts this number to a double before computing the string representation, as by toDouble. If the absolute value of this is greater then or equal to 10^21
api.dart.dev