3 ms·
We had a similar problem in Python with float(). We have a logfile parser that tries to parse a value and fell back to float(). But if you passed it a hex val
by AceJohnny2 2y ago
We had a similar problem in Python with float().
We have a logfile parser that tries to parse a value and fell back to float().
But if you passed it a hex value that happened to only have decimals and 'e', then Python interpreted it a an exponentiated number, which happened to be larger than what it could natively represent, so returned `Infinity` !
Obviously the bug was on our end with the naive `float()`, which after deliberation should not be used in this generic parser case, but it was interesting tracking down this bug from the DB values all the way up to the parser.