Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java format money

double money = 100.1;
NumberFormat formatter = NumberFormat.getCurrencyInstance();
String moneyString = formatter.format(money);
System.out.println(moneyString);
 
PREVIOUS NEXT
Tagged: #java #format #money
ADD COMMENT
Topic
Name
1+8 =