How To Format Decimals In A Currency Format

[Solved] How To Format Decimals In A Currency Format | Swift - Code Explorer | yomemimo.com
Question : how to format decimals in a currency format

Answered by : ugly-unicorn-aju7ab4mi02e

double money = 100.1;
NumberFormat formatter = NumberFormat.getCurrencyInstance();
String moneyString = formatter.format(money);
System.out.println(moneyString);

Source : | Last Update : Wed, 09 Sep 20

Answers related to how to format decimals in a currency format

Code Explorer Popular Question For Swift