Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Currency Formatter java

NumberFormat numberFormat = NumberFormat.getCurrencyInstance(locale);
//the user may have selected a different currency than the default for their locale
Currency currency = Currency.getInstance("GBP");
numberFormat.setCurrency(currency);
numberFormat.format(amount);
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #Currency #Formatter #java
ADD COMMENT
Topic
Name
9+9 =