NumberParser { float parseFloat(String s) { return parse(s).floatValue(); } NumberParser(Locale locale);   }
@Test public void can_parse_float() { assertEquals(1042.2f, english.parseFloat("1,042.2"), 0); assertEquals(1042.2f, german.parseFloat( "1.042,2"), 0); assertEquals(1042.2f, canadianFrench.parseFloat( "1\u00A0042,2"), 0); }
@Test void can_parse_float() { assertEquals(1042.2f, english.parseFloat("1,042.2"), 0); assertEquals(1042.2f, german.parseFloat("1.042,2"), 0); System.out.println(Arrays.toString(NumberFormat.getAvailableLocales())); }