C
Chi Tang
Hi,
I try to convert a string to a float but it alway comes out with extra
value. For example, the string input is '12.6' but the output is
'12.6000003814697' The following is my code to do the convert:
float fBalance = (float)System.Convert.ToSingle("12.6");
Should I specify a format string for the convert? Thanks for any help,
CT
I try to convert a string to a float but it alway comes out with extra
value. For example, the string input is '12.6' but the output is
'12.6000003814697' The following is my code to do the convert:
float fBalance = (float)System.Convert.ToSingle("12.6");
Should I specify a format string for the convert? Thanks for any help,
CT