-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve number normalization in NumberNode
This change now makes the BigDecimal get created eagerly, and accounts for NaN and Infinity. The previous implementation would have failed in these cases. The node validation visitor now uses the computed BigDecimal rather than create a one-off each time. It also doesn't recreate the already available BigDecimcal of the range trait.
- Loading branch information
Showing
2 changed files
with
89 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters