Re: Infinite precision floating-point
- From: "Geoffrey Summerhayes" <sRuEmMrOnVoEt@xxxxxxxxxxx>
- Date: Thu, 26 May 2005 13:37:11 -0400
"Joel Ray Holveck" <joelh@xxxxxxxxxxx> wrote in message
news:y7cbr6zht8x.fsf@xxxxxxxxxxxxxxxxxxxxx
>> The "hack" mentionned elsewhere is not good for these accountants who
>> may object that 1/20 is not 0.05.
>
> I suspect that it wouldn't be too difficult to write a routine to
> print-- in precise decimal notation-- any given rational.
>
> I have no intention of actually doing so, which is why I feel bold
> enough to make such claims.
>
Oh, come on, give it a try!
http://online-judge.uva.es/p/v2/202.html
Unfortunately, they only allow C, C++, Java, and Pascal
solutions to be submitted.
Anyone have a solution that doesn't have an O(denominator)
space requirement? It's a *bit* of a hitch. ;-)
--
Geoff
.
- Follow-Ups:
- Re: Infinite precision floating-point
- From: Wade Humeniuk
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- References:
- Counting number of digits
- From: André Thieme
- Re: Counting number of digits
- From: jtdubs
- Re: Counting number of digits
- From: André Thieme
- Infinite precision floating-point (was Re: Counting number of digits)
- From: jtdubs
- Re: Infinite precision floating-point (was Re: Counting number of digits)
- From: Joel Ray Holveck
- Re: Infinite precision floating-point (was Re: Counting number of digits)
- From: jtdubs
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- From: André Thieme
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- From: André Thieme
- Re: Infinite precision floating-point
- From: josephoswaldgg@xxxxxxxxxxx
- Re: Infinite precision floating-point
- From: Pascal Bourguignon
- Re: Infinite precision floating-point
- From: Joel Ray Holveck
- Counting number of digits
- Prev by Date: Re: Practical Common Lisp going into 2nd printing
- Next by Date: Re: Practical Common Lisp going into 2nd printing
- Previous by thread: Re: Infinite precision floating-point
- Next by thread: Re: Infinite precision floating-point
- Index(es):
Relevant Pages
|