We need this method:
The input is a double number and a string containing the formatting rules; These rules conform (not necessarily strictly) to this standard: Custom Numeric Format Strings .
The output is a string containing a number formatted according to these rules.
Is there any Java library that does this?
PS:
Ultimately, it will run on the BlackBerry . Unfortunately, the Java API is very truncated there, there is no such standard standard library for formatting.