Reimplement flonum->ratnum conversion to guarantee that the ratnum
authorChris Hanson <org/chris-hanson/cph>
Tue, 31 Oct 1989 05:06:08 +0000 (05:06 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 31 Oct 1989 05:06:08 +0000 (05:06 +0000)
commita82d10c5e77dd5dd1b851519d843b5c6f70b7b3d
tree228d276b965d646ff1e49eaffe0dc976156cfdf2
parent66abde4344bc408cb52aa7c5284a000333706530
Reimplement flonum->ratnum conversion to guarantee that the ratnum
chosen is the closest representation possible; this is required by
definition of `inexact->exact'.  Previously we used `rationalize' to
find "best" answer in a given range, which is not strictly correct by
the definition.
v7/src/runtime/arith.scm