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 values from another locations are not handled correctly in NumericTextField #662

Open
netonjm opened this issue Oct 16, 2019 · 0 comments

Comments

@netonjm
Copy link
Contributor

netonjm commented Oct 16, 2019

void SetValue (string value)
{
if (this.numericEditor.StringValue != value) {
this.numericEditor.StringValue = value;
}
}
public void SetValue (double value)
{
SetValue (value.ToString ());

It's not handling culture infos (european like for example Spain) where NumericDecimalSeparator is "dot" and not the "comma"

I recommend use a.ToString(System.Globalization.CultureInfo.InvariantCulture); for this cases

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

No branches or pull requests

2 participants