Skip to content

float parser consumes decimal separator without fractional part #15

@aforemny

Description

@aforemny

Hi,
I have found that the float parser consumes all of the input "42.". I would have expected that it would only consume "42" since there is no fractional part. In my personal opinion, "42." is not a floating point representation, while "42" is.

Here is an Ellie demonstrating this problem: https://ellie-app.com/3gJXCLHPGqJa1

If this is not a bug, I would propose to document that behavior and how to work around it.

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