"fixed" Rational::ToDouble().
authorDavid Gow <[email protected]>
Thu, 7 Aug 2014 14:30:37 +0000 (22:30 +0800)
committerDavid Gow <[email protected]>
Thu, 7 Aug 2014 14:30:37 +0000 (22:30 +0800)
commit63554274d8ca1b51b47da55c978c3354a91567bc
tree9bfa460baf45bf2c036abe32c820b80dec63933b
parent8e0633d24356301c335c20de8ab0865331b91fdb
"fixed" Rational::ToDouble().

Previously if the numerator or denominator was > the range of a double,
Rational.ToDouble() would return NaN. We now check for this case, and
discard precision accordingly.
src/rational.h

UCC git Repository :: git.ucc.asn.au