3 ms·
>One request I didn’t see: money formatting. Probably for a good reason. Formatting currency should be handled by the i18n system, because that's what it is.
by Klathmon 8y ago
>One request I didn’t see: money formatting.
Probably for a good reason. Formatting currency should be handled by the i18n system, because that's what it is.
Take one thousand dollars in US currency, it can be displayed as:
$1,000.00
$10,00.00
$1.000,00
$1,000.00 USD
1,000.00 $
$ 1 000,00
and more. And that's not even counting negative numbers which can change their display format based on the industry it's used in, let alone the language.
Then add in other currencies in different locales, often the currency symbol is after the currency, some locales use different spacing, some don't have a decimal to their currency in common usage, some use the same symbol for different currencies ($ could mean USD or CAD or more and in some cases that can be a big mistake) and a LOT more edge cases.