Skip to content

Small error when parsing long float value #83

Open
@Mark-Simulacrum

Description

@Mark-Simulacrum

JavaScript's JSON.parse doesn't lose precision from my tests.

Test case below:

#[test]
fn large_precision() {
    assert_eq!(parse("0.004750000000000001").unwrap().as_f64().unwrap(), 0.004750000000000001);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions