DHUNumberFormatStringExtensions extension

on

Methods

compactCurrencyFormat({String? locale}) NumberFormat
Creates a NumberFormat object as compact simple currency using the string as the currency name, along with the given locale.
simpleCurrencyFormat({String? locale}) NumberFormat
Creates a NumberFormat object as simple currency using the string as the currency name, along with the given locale.
symbolCurrencyFormat({String? locale, int decimalDigits = 2}) NumberFormat
Creates a NumberFormat object as currency using the string as the currency symbol, along with the given locale and optional decimal digits.
toDoubleFormatted([String? newPattern, String? locale]) double
Parses the string to a double with the given newPattern and locale.
toIntFormatted([String? newPattern, String? locale]) int
Parses the string to an integer with the given newPattern and locale.
toNumFormatted([String? newPattern, String? locale]) num
Parses the string to a number with the given newPattern and locale.