Skip to content

parsing regression in version 0.5 #28

@databasedav

Description

@databasedav
# cargo install --force calc@=0.4
~> calc "1 + 1"
2
~> calc "1.5 + 1"
2.5
# cargo install --force calc@=0.5
~> calc "1 + 1"
2
~> calc "1.5 + 1"
Error: parsing: "1.5" cannot be parsed as Value given radix 10

Caused by:
    "1.5" cannot be parsed as Value given radix 10

also what is the easiest way to extract a numeric value with the new Value API? if the returned value is an integer, it seems like i need to do multiple .try_intos for each Value type when before i could simply do Context::<f64>::default().evaluate(&output) and always get an f64, even if the result was an integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions