private float parseFloat(String par1Str){
  return par1Str.equals("true") ? 1.0F : (par1Str.equals("false") ? 0.0F : Float.parseFloat(par1Str));
}

private float parseFloat ( String par1Str ) { return par1Str . equals ( "true" ) ? 1.0F : ( par1Str . equals ( "false" ) ? 0.0F : Float . parseFloat ( par1Str ) ) ; }
parses a string into a float .
