simple_currency_format 1.0.3 copy "simple_currency_format: ^1.0.3" to clipboard
simple_currency_format: ^1.0.3 copied to clipboard

outdated

A simple API to format currency values. As pattern, the package use pt_BR locale and R$ symbol.

example/simple_currency_format.dart

import 'package:simple_currency_format/simple_currency_format.dart';

main() {
  print(currencyFormat(10)); //returns R$ 10,00
  print(currencyFormat(12.3)); //returns R$ 12,30
  print(currencyFormat(5, locale: 'en_US', symbol: '\$ ')); //returns $ 5.00

  print(removeZeroDecimal(00500)); //returns 500
}
3
likes
0
points
61
downloads

Publisher

unverified uploader

Weekly Downloads

A simple API to format currency values. As pattern, the package use pt_BR locale and R$ symbol.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl

More

Packages that depend on simple_currency_format