I have a problem. when I parse a string like "0.005" to float or double, it works fine on my computer, but when i install my program to my client's computer, it returns 5. (both my computer and my client's computer are using Windows 7 x64). Here are my examples
public float getFloat()
{
float mn = float.Parse("0.005");
double mn2 = Convert.ToDouble("0.005");
return mn;
}
.
is not the decimal separator in every culture. Edit: In PT-BR, for example, 0.005 IS 5. – Landwaiter