Skip to content

JSON解析数值时未区分0.0和-0.0 #3613

@ZOUG

Description

@ZOUG

fastjson在解析数值时没有区分"0.0"和"-0.0"字符串。在Java里,整型没有区分0和-0,但是浮点数0.0和-0.0有区分,在某些行为上有差别,所以解析时最好能保留此信息。另外,若输入字符串"0"和"-0"被要求按照浮点数解析,此信息也应保留。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions