I have a string in this format: "123.46.789-01". I must cast it to float, and I was doing it this way: float.parse(stringVariable.Replace(".", "").Replace("-", "")) where stringVariable is the string with the value described above.
This cast is generating a wrong cast value, wich is 1.141085E+10.
I've tried converting in many other ways, like Convert.ToSingle, but no success on that. You guys can help me with that? I'm wondering if this kind of number fits on float data type at all...
Thanks in advance!