static public boolean isEqual(float a,float b,float tolerance){
  return Math.abs(a - b) <= tolerance;
}

static public boolean isEqual ( float a , float b , float tolerance ) { return Math . abs ( a - b ) <= tolerance ; }
returns true if a is nearly equal to b .
