Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimal separator error #26

Open
GoogleCodeExporter opened this issue Feb 2, 2016 · 0 comments
Open

Decimal separator error #26

GoogleCodeExporter opened this issue Feb 2, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In every place where you use float.Parse() (SendMessage.cs lines 209 & 618)
you should use it this way:

    float.Parse(variable, NumberStyles.Any, ni)

and before that, place this:

    NumberFormatInfo ni = new NumberFormatInfo();
    ni.NumberDecimalSeparator = ".";

and include at the beginning:

    using System.Globalization;

Otherwise it throws exception on systems that are using comma as a decimal
separator.

PS Katharine, did you receive my e-mails @gmail?

Original issue reported on code.google.com by JRad...@gmail.com on 18 Sep 2008 at 12:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant