public static float parseFloat(String s){
  if (POSITIVE_INFINITY.equals(s)) {
    return Float.POSITIVE_INFINITY;
  }
 else   if (NEGATIVE_INFINITY.equals(s)) {
    return Float.NEGATIVE_INFINITY;
  }
 else   if (NaN.equals(s)) {
    return Float.NaN;
  }
 else {
    s=trimPlusSign(s);
    return Float.parseFloat(s);
  }
}

public static float parseFloat ( String s ) { if ( POSITIVE_INFINITY . equals ( s ) ) { return Float . POSITIVE_INFINITY ; } else if ( NEGATIVE_INFINITY . equals ( s ) ) { return Float . NEGATIVE_INFINITY ; } else if ( NaN . equals ( s ) ) { return Float . NaN ; } else { s = trimPlusSign ( s ) ; return Float . parseFloat ( s ) ; } }
parses the supplied xsd : float string and returns its value .
