
Tomasz Zielonka writes:
On Fri, Oct 15, 2004 at 01:15:16AM -0400, David Menendez wrote:
I'd go with ratios. Haskell has a built-in type, and they can give you as many digits of precision as you need--unless you're dealing with an irrational timeout value.
Unfortunately, they have the unpleasant tendency that after many operations even if the absolute value is small, the two integers that constitute the ratio can be very big. That's why (I think) it's not that good idea to solve linear equation systems using unbounded ratios.
No argument from me. But the original point had to do with setting a
timeout value that retained microsecond precision after four months.
Pretty much *any* way of doing this amounts to overkill.
--
David Menendez