Related articles |
---|
rational to floating point thant@acm.org (Thant Tessman) (2003-03-09) |
Re: rational to floating point chase@theworld.com (David Chase) (2003-03-14) |
Re: rational to floating point nmm1@cus.cam.ac.uk (2003-03-14) |
Re: rational to floating point thant@acm.org (Thant Tessman) (2003-03-14) |
Re: rational to floating point joachim_d@gmx.de (Joachim Durchholz) (2003-03-14) |
Re: rational to floating point ajo@andrew.cmu.edu (Arthur J. O'Dwyer) (2003-03-14) |
Re: rational to floating point gah@ugcs.caltech.edu (Glen Herrmannsfeldt) (2003-03-14) |
Re: rational to floating point tmk@netvision.net.il (2003-03-14) |
Re: rational to floating point Peter-Lawrence.Montgomery@cwi.nl (2003-03-14) |
Re: rational to floating point francis@thibault.org (John Stracke) (2003-03-14) |
From: | Thant Tessman <thant@acm.org> |
Newsgroups: | comp.compilers |
Date: | 14 Mar 2003 11:19:35 -0500 |
Organization: | XMission http://www.xmission.com/ |
References: | 03-03-035 |
Keywords: | arithmetic |
Posted-Date: | 14 Mar 2003 11:19:35 EST |
I wrote:
> The question is: Under what conditions will a rational number produce
> an infinite stream of digits for a given base? [...]
I got confirmation in sci.math. For a rational number to have a
non-repeating 'decimal' representation for a given base, the denominator
of the rational number can't have any prime factors that are not also
prime factors of the base. So, for example in the case of base ten, the
denominator can't contain any prime factors other than two or five.
-thant
Return to the
comp.compilers page.
Search the
comp.compilers archives again.