FIX InexactError when using allownan with typemax(Int) - #479
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #479 +/- ##
==========================================
+ Coverage 89.99% 90.31% +0.32%
==========================================
Files 7 7
Lines 1519 1528 +9
==========================================
+ Hits 1367 1380 +13
+ Misses 152 148 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks for the clear writeup and for jumping on a first PR the same day. DiagnosisWith Always running the integer lexer, and only taking the float path for actual floats / specials, is the right fix and the right layer.
|
Summary
Root Cause
When using allownan, any number was parse as Float, and then convert as Int if needed. But the parsing as Float64 was rounded from 2e63 -1 to 2e63.
Notice: it's my first PR, so I may have done some mistakes. I ran all tests locally, and it was working.
Fixes #478