General

Profile

AndrewDile (Andrew Dile)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 0 1

Activity

08/14/2026

07:29 PM Ruby Bug #22246 (Open): Rational#to.f incorrectly rounds when the numerator is a bignum that cannot be represented exactly by a double, and the denominator is a fixnum
``` c
Rational(65803600513127829623, 10**12).to_f
```
The bignum numerator cannot be exactly represented by a double, but the code in `rb_big_fdiv_double` rounds it to a double (`dx`) before dividing by the fixnum denominator of 10^12...
AndrewDile (Andrew Dile)

Also available in: Atom