static public boolean isZero(float value,float tolerance){
  return Math.abs(value) <= tolerance;
}

static public boolean isZero ( float value , float tolerance ) { return Math . abs ( value ) <= tolerance ; }
returns true if the value is zero .
