Skip to content

Improved new-codable JSON support for large integers masquerading as floating points. #1863

@kperryua

Description

@kperryua

Very large technically-integral numbers like 18446744073709551615.0 cannot currently be decoded as UInt128 because the decoder sees that they have floating pointer characters (.eE) and parses them as Doubles. However, doing so loses integer precision, which is extremely undesirable.

An alternative method of parsing these as integers will need to be devised, preferably not causing additional overhead for straightforward cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnew-codableRelated to new Swift (de)serialization APIs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions