private static boolean isRoundedToZero(double source,int decimals,int precision){
  return source == 0.0 || Math.abs(source) < 4.999999999999999 / tenPowDouble(Math.max(decimals,precision) + 1);
}

private static boolean isRoundedToZero ( double source , int decimals , int precision ) { return source == 0.0 || Math . abs ( source ) < 4.999999999999999 / tenPowDouble ( Math . max ( decimals , precision ) + 1 ) ; }
returns true if the given source value will be rounded to zero
