Join Slack
Powered by
If there's a possibility that a decimal point numb...
# android
d
dragas
01/13/2017, 11:52 AM
If there's a possibility that a decimal point number will be returned in your JSON, i'd suggest using double/float for that field. You can always check if it's a whole number by calling
number % 1 == 0
.
Open in Slack
Previous
Next