摘要:
c#中最高效的string to float1publicfloatStrToFloat(objectFloatString)2{3floatresult;4if(FloatString!=null)5{6if(float.TryParse(FloatString.ToString(),outresult))7returnresult;8else9{10return(float)0.00;11}12}13else14{15return(float)0.00;16}17}1publicfloatStrToFloat(objectFloatString)2{3try4{5floatf=(float 阅读全文