KB1IBH
June 24th, 2008, 07:31 PM
i've got a line of code where i need to convert a string ("58.00") to a float, but the only method i know of returns:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Additional unparsable characters are at the end of the string.
float YW = system.Convert.ToInt32(splitval[I+1], 10);
anything else i can do?
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Additional unparsable characters are at the end of the string.
float YW = system.Convert.ToInt32(splitval[I+1], 10);
anything else i can do?