Skip to content

Instantly share code, notes, and snippets.

@hlassiege
Created May 3, 2018 09:31
Show Gist options
  • Save hlassiege/91e6a78c3ad775d40c5844d302beebc5 to your computer and use it in GitHub Desktop.
Save hlassiege/91e6a78c3ad775d40c5844d302beebc5 to your computer and use it in GitHub Desktop.
numberformat.java
NumberFormat nf = NumberFormat.getInstance(); // pour utiliser la Locale courante
ou
NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH); // pour spécifier une Locale
myNumber = nf.parse(myString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment