Skip to content

about convert json to NSDictioanry (error if json string contains double field) #192

Description

@icoco

I face a problem, if response json string contains some double value , then while got the NSDictionary , the value is not normal ...

example :
{
"int": 12,
"double": 67860.04,

}

then got the Dictionary that will be :

double = "67860.03999999999";

the filed 'double' value is not original data.....

how to fix it ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions