There is some existing code of the follow form which is used for format numerical values:
String.format( pattern, value )
Note that I cannot change the code itself - I can only change the format pattern supplied to the code.
What is the format pattern to output a currency symbol for the default locale? Essentially, I want to achieve the following output:
String.format( "...", 123 ) => $ 123