Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Float parsing blows up on % symbol #18

@jhmoore

Description

@jhmoore

One of our customers' Items query is returning a percentage that has an actual % symbol in the float field. E.g.

<PricePercent>18.0%</PricePercent>

The implementation of FLOATTYPE uses Float(), which is throwing an exception for us when trying to parse 18.0%. Any reason it couldn't be a to_f there instead?

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