printfn / fend

Arbitrary-precision unit-aware calculator
https://printfn.github.io/fend
MIT License
587 stars 50 forks source link

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

Open haykam821 opened 3 months ago

haykam821 commented 3 months ago

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 commented 3 months ago

Thanks for the bug report!