Re: Infinite precision floating-point




"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




.



Relevant Pages

  • Functions assigned to variables test
    ... I have the following routine that I found but am not sure what it is doing: ... It seems that this fuctions should check to see if there is an onload ... But what is happening is if run as is, it will do the alert, where prev = ... and then will run the printOnLoad function. ...
    (comp.lang.javascript)
  • Re: Lighting question
    ... More a case of the gnomes piling on and doing the usual "I'm sidin' wiv Bill!" ... routine I suspect. ...
    (uk.tech.digital-tv)
  • Re: Recent IBL Update
    ... > I suspect there has just been an inbound links update. ... Prev by Date: ...
    (alt.internet.search-engines)
  • Re: Committee of Advertising Practice loses the plot [0845/0870 numbers not to be refered to as loca
    ... You are looking at the discounts rates you can get if you are on one of ... the BT Together Options, I suspect. ... If not, please provide the URI. ... Prev by Date: ...
    (uk.telecom)
  • Re: Probably simple AM radio repair
    ... If the decoupling cap that you mentioned really leaked, ... RF can, suspect that it's gotten inside, and eaten the windings. ... Geoff ...
    (sci.electronics.repair)