How can I limit the number of digits in an NSNumber?

10 views
Skip to first unread message

Ricardo1980

unread,
Mar 8, 2015, 7:21:30 PM3/8/15
to res...@googlegroups.com
Hello!

How can I limit the number of digits in an NSNumber?
I guess I should use NSDecimalNumber and let RestKit transform it to NSNumber, isn't it?
What I want is to limit my number in 9 digits. Of course my server expects a number in the json file, not a string, so not sure how to do it and add it to restkit.
Any idea?
Thanks.
Reply all
Reply to author
Forward
0 new messages