Adds a toFormat instance method to big or decimal.
More...
Adds a toFormat instance method to num.
toFormat
num
$ dart pub add to_format
import 'package:to_format/to_format.dart'; void main() { num x = 1234567.89; String formatted = x.toFormat(dp: 2, fmt: {'groupSeparator': ' '}); print(formatted); // 1 234 567.89 }
unverified uploader
Repository (GitHub)View/report issues
API reference
BSD-2-Clause (license)
Packages that depend on to_format
Back