Skip to content

100000000000.00 Float is dumped in a scientific notation as "1e+11" #861

@nvasilevski

Description

@nvasilevski

Reproducible on 2.14.1

irb(main):003> JSON.dump(100000000000.00)
=> "1e+11"

Before (2.10.2, for example)

> JSON.dump(100000000000.00)
"100000000000.0"

I assume this isn't an intentional change judging by #800

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions