public static double toDoubleWithDefault ( Object value , double defaultValue ) { Double result = toNullableDouble ( value ) ; return result != null ? ( double ) result : defaultValue ; }
Converts value into doubles or returns default value when conversion is not possible .