Please sign in to comment.
Fix for FatRat.base failure for large denominators
FatRat.base conversion with denominators larger than 2**1023 (~10**308) falls into an infinite process sequence calculation. The problem is in the `$!denominator.log($base).ceiling + 1` code on line 213. log of integers > 10*308 or so returns Inf, and it tries to calculate the fraction to infinite precision. This pull request works around that and has a few other minor speed-up tweaks. Spectest has some failures but they aren't related to FatRats, base conversion or stringification so I think this is ok to merge. See https://www.nntp.perl.org/group/perl.perl6.users/2019/03/msg6640.html for bug report.
- Loading branch information...