public static float toFloat(final String str) {
        return toFloat(str, 0.0f);
    }
@Test
    void testToFloatString() {
        assertEquals(NumberUtils.toFloat("-1.2345"), -1.2345f, 0);
        assertEquals(1.2345f, NumberUtils.toFloat("1.2345"), 0);
        assertEquals(0.0f, NumberUtils.toFloat("abc"), 0);
        
        assertEquals(NumberUtils.toFloat("-001.2345"), -1.2345f, 0);
        assertEquals(1.2345f, NumberUtils.toFloat("+001.2345"), 0);
        assertEquals(1.2345f, NumberUtils.toFloat("001.2345"), 0);
        assertEquals(0f, NumberUtils.toFloat("000.00"), 0);
        
        assertEquals(Float.MAX_VALUE, NumberUtils.toFloat(Float.MAX_VALUE + ""), 0);
        assertEquals(Float.MIN_VALUE, NumberUtils.toFloat(Float.MIN_VALUE + ""), 0);
        assertEquals(0.0f, NumberUtils.toFloat(""), 0);
        assertEquals(0.0f, NumberUtils.toFloat(null), 0);
    }