Formatting and Parsing a Locale-specific Percentage // Format Locale locale = Locale.CANADA; String string = NumberFormat.getPercentInstance( locale).format(123.45); // Parse try { Number number = NumberFormat.getPercentInstance( locale).parse("123.45%"); if (number instanceof Long) { // Long value } else { // Double value } } catch (ParseException e) { }