public static double toRadians(double x){
  if (Double.isInfinite(x) || x == 0.0) {
    return x;
  }
  final double facta=0.01745329052209854;
  final double factb=1.997844754509471E-9;
  double xa=doubleHighPart(x);
  double xb=x - xa;
  double result=xb * factb + xb * facta + xa * factb + xa * facta;
  if (result == 0) {
    result*=x;
  }
  return result;
}

public static double toRadians ( double x ) { if ( Double . isInfinite ( x ) || x == 0.0 ) { return x ; } final double facta = 0.01745329052209854 ; final double factb = 1.997844754509471E-9 ; double xa = doubleHighPart ( x ) ; double xb = x - xa ; double result = xb * factb + xb * facta + xa * factb + xa * facta ; if ( result == 0 ) { result *= x ; } return result ; }
convert degrees to radians , with error of less than 0 . 5 ulp
