Skip to content

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

Open
@haykam821

Description

@haykam821

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions