in reply to Re: How do you ++ a fraction?
in thread Round a fraction

Don't reinvoke on the same variable...

(1++) ++ = 3 (0.004++) ++ = 0.006
But...
(1.99++) ++ = 3 (1.79++) ++ = 1.9 (1.009999++) ++ = 1.02

--
Tommy
Too stupid to live.
Too stubborn to die.

Replies are listed 'Best First'.
Re: Re: Re: How do you ++ a fraction?
by marvell (Pilgrim) on Aug 02, 2002 at 14:44 UTC
    That seems to be the desired behaviour. Since the numbe of decimal palces changes, I'd say that seems to be what is required.

    Would be simple enough to make a function to add a specific number to the "end".

    --
    Steve Marvell