code: public float toFloat(float defaultValue) {
  		try {
  			return Float.parseFloat(sb.toString());
  		} catch (java.lang.NumberFormatException e) {
  		}
  		return defaultValue;
  	}
docs: returns float value ,when format error occurred ,returns default value
  
  @param defaultValue
  @return