public float toFloat ( float defaultValue ) { try { return Float . parseFloat ( sb . toString ( ) ) ; } catch ( java . lang . NumberFormatException e ) { } return defaultValue ; }
returns float value when format error occurred returns default value