Skip to content

Exception thrown when parsing numbers with thousands comma separators #10

@LiamAttClarke

Description

@LiamAttClarke

If you try to run the app with a contribution amount that contains a comma thousands separator (i.e. 10,000) you will get the following exception:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseFloatError { kind: Invalid }', src\libcore\result.rs:997:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

The same error occurs if any number within the portfolio.csv or targets.csv has a comma separated number.

Fund A, $40000
Fund B, $40,000 <-- 😢
Fund C, $1000

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions