I would like to format integers as professional currency strings. For instance:
1200000 → $ 1.2 million.456 → $ 456.00
Do you know a good library for this, ideally, with localization to handle European formats.
Such formatting seems reasonable for some limited purposes. But, should 1,200,000 be formatted as 1.2 million or 1.20 million? And aren't 456 friendlier, like 456 dollars (without cents)?
( , $12,000,000.00).
, , . .
locale.currency() , .
locale.currency()
Source: https://habr.com/ru/post/1731975/More articles:Using linux "cut" with stdin - bashPoor performance with OracleDataReader - performanceHow do you use a String array as a member field in a Grails domain? - grailsHow to Report the Impact of TDD - Unit-Testingvb.net. How to associate a dataset with a DataRepeater? - vb.netHow to write commands in a GDB script that are executed every time a particular brkpt hits? - gdbYou need to understand how the manifest is created for a C ++ program - c ++To send an iPhone application to the application store, do we need our own server in all cases? - iphoneHow to implement administrator rights in a Java application? - javaGet font from given font name - c #All Articles