Re: Scheme conversion inexact->exact question

2016-07-12 Thread tisimst
xact 1.2) 1/100) > => 6/5 > Brilliant! I was trying to figure out how to make that function work, thinking it would be what I needed, and those two examples were perfect in helping me understand how to use it effectively. I'm back on the road again! Thank you, David! -

Re: Scheme conversion inexact->exact question

2016-07-12 Thread David Kastrup
Abraham Lee writes: > Does anyone have a solution for the occasional HUGE integers that can be > created for the numerator/denominator when using inexact->exact? > > For example, > > (inexact->exact 0.2) > > yields > > 3602879701896400/18014398509482000 > > It is correct, but LP doesn't seem to w

Scheme conversion inexact->exact question

2016-07-12 Thread Abraham Lee
Does anyone have a solution for the occasional HUGE integers that can be created for the numerator/denominator when using inexact->exact? For example, (inexact->exact 0.2) yields 3602879701896400/18014398509482000 It is correct, but LP doesn't seem to want to deal with such large integers, at