public static Double zing(Number value){
  if (value == null) {
    return null;
  }
  return Math.max(0d,value.doubleValue());
}

public static Double zing ( Number value ) { if ( value == null ) { return null ; } return Math . max ( 0d , value . doubleValue ( ) ) ; }
function which will return zero if the argument is a negative number .
