Skip to content

Decimals and Fractions #61

@edpickup

Description

@edpickup

In the specification you say

If a sequence of characters could be interpreted as an decimal or a fraction, then fraction should have precedence.

Can you clarify how the following sequence should be parsed:
5.5/45
Is the correct way to parse this as 5. then 5/45?
How about the example
5/5.5
Should this be parsed as 5/5 (fraction) and 5 (decimal)

How should a compounded fraction such as 3/5/4 be parsed? Is reading that as 3/5 (fraction) and 4 (decimal) the correct response?

I'm probably over thinking this but wanted to check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions