Project

General

Profile

« Previous | Next » 

Revision d16b68cb

Added by jeremyevans (Jeremy Evans) almost 4 years ago

Use Rational for Float#round with ndigits > 14

ndigits higher than 14 can result in values that are slightly too
large due to floating point limitations. Converting to rational
for the calculation and then back to float fixes these issues.

Fixes [Bug #14635]
Fixes [Bug #17183]

Co-authored by: Yusuke Endoh