public static Float parseFloat ( final String str ) { if ( null != str ) { try { return new Float ( Float . parseFloat ( str . trim ( ) ) ) ; } catch ( final Exception e ) { // :IGNORE: } } return null ; }
Parse a Float from a String without exceptions . If the String is not a Float then null is returned