public static float toFloatWithDefault ( Object value , float defaultValue ) { Float result = toNullableFloat ( value ) ; return result != null ? ( float ) result : defaultValue ; }
Converts value into float or returns default when conversion is not possible .