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

Numbers with words composed of two number words are multiplied #277

Open
haykam821 opened this issue Mar 5, 2024 · 1 comment
Open

Numbers with words composed of two number words are multiplied #277

haykam821 opened this issue Mar 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@haykam821
Copy link
Contributor

I would expect fifty two to be 52, but instead, that input is parsed as multiplying fifty by two:

> fifty two
100
> @debug fifty two
1 fifty (= 50) * two (= 2) (base 10, auto, simplifiable)

With a hyphen, the value is still not correct, but the operation is instead subtraction:

> fifty-two
48
> @debug fifty-two
48/50 fifty (= 50) (base 10, auto, simplifiable)
@printfn
Copy link
Owner

printfn commented Mar 6, 2024

Thanks for the bug report!

@printfn printfn added the bug Something isn't working label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants