Skip to content

parse exception when parse NSNumber to float #49

@jianggaocheng

Description

@jianggaocheng

I want to parse a valut to float type.
And the value is between 0~1,so, I use a float value to store this value.
But when the value is 1, it will throw an exception Cannot map NSNumber to float.
In fact, I can not make a Variable that both in type int and float.
So, I think maybe we should change the if condition in (NSObject: deserializeNumber) function

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions