Cannot get float pointer for value stored as 0
#484
Labels
kind: question
solution: wontfix
the issue will not be fixed (either it is impossible or deemed out of scope)
I am using a web service which doesn't return a floating point all the time. For example,
0
is used to represent0.0
. Because this library needs0.0
in order to parse it as a float I am having some issues with it. Right now I am unable to get a properfloat
pointer, simply because thenumber_float
storage is not set.How would I approach this, since the webservice cannot be changed in order to output
0
as0.0
. I am using lots data that has this, so it would be nice if there was a good solution for this issue.Any ideas? 😄
Maybe it is a good idea to always store ints and float along side each other?
The text was updated successfully, but these errors were encountered: