[gambit-list] Any rational-number->string with infinite precision for decimal output? (i.e. d.ddddd rather than x/y)

Hendrik Boom hendrik at topoi.pooq.com
Thu Jan 16 09:48:58 EST 2014


On Thu, Jan 16, 2014 at 08:58:00AM -0500, Marc Feeley wrote:
> 
> On Jan 16, 2014, at 8:35 AM, Hendrik Boom <hendrik at topoi.pooq.com> wrote:
> 
> > If all you want is a boolean, maybe it would be simpler to reduce the 
> > fraction to lowest terms (might this already have been done?) and then 
> > checking if the denominator is divisible by 2 or 5.
> 
> I guess you mean that 2 and 5 are the only factors (for example 1/140 has an infinite decimal representation but the denominator is divisible by 2, 5 and 7).

You are right.  I was wrong.

-- hendrik



More information about the Gambit-list mailing list