public static float toFloat ( final Object value ) { if ( value instanceof Float ) { return ( float ) value ; } if ( value == null ) { return 0 ; } return new Float ( value . toString ( ) ) ; }
To float .