Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created October 19, 2019 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malikkurosaki/64ec92f3cdb092b23d53c09c63105536 to your computer and use it in GitHub Desktop.
Save malikkurosaki/64ec92f3cdb092b23d53c09c63105536 to your computer and use it in GitHub Desktop.
format uang

format uang

NumberFormat formatter = new DecimalFormat("#,###");
double myNumber = 1000000;
String formattedNumber = formatter.format(myNumber);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment