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

NumberLiteral should work properly when the decimal separator is not a dot #47

Closed
davidnemeti opened this issue Jan 26, 2023 · 0 comments · Fixed by #48
Closed

NumberLiteral should work properly when the decimal separator is not a dot #47

davidnemeti opened this issue Jan 26, 2023 · 0 comments · Fixed by #48

Comments

@davidnemeti
Copy link
Contributor

NumberLiteral should work properly when the decimal separator is not a dot, but e.g. a comma.

Currently it does not work when there is only one digit before the comma.

E.g. using this grammar:

var number = new NumberLiteral("number") { DecimalSeparator = ',' };
number.AddPrefix("0", NumberOptions.Octal);

it should work properly for the following texts:

  • "1,2"
  • "0,123"
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

Successfully merging a pull request may close this issue.

1 participant