Closed jhmoore closed 8 years ago
Only reason I can see would be in case it returns a completely non-float number, you'd want an error instead of 0.0. But I've never had that case, nor have I heard of anyone who has, so a PR for to_f
would be OK with me.
Thanks! Opened https://github.com/qbwc/qbxml/pull/19
One of our customers' Items query is returning a percentage that has an actual
%
symbol in the float field. E.g.The implementation of FLOATTYPE uses
Float()
, which is throwing an exception for us when trying to parse18.0%
. Any reason it couldn't be ato_f
there instead?