public static double stringToDouble(String d){
  if (d.equalsIgnoreCase(P_INF))   return Double.POSITIVE_INFINITY;
 else   if (d.equalsIgnoreCase(N_INF))   return Double.NEGATIVE_INFINITY;
 else   return Double.parseDouble(d);
}

public static double stringToDouble ( String d ) { if ( d . equalsIgnoreCase ( P_INF ) ) return Double . POSITIVE_INFINITY ; else if ( d . equalsIgnoreCase ( N_INF ) ) return Double . NEGATIVE_INFINITY ; else return Double . parseDouble ( d ) ; }
redis specific manner to parse floats
