No safety in numbers

David Roundy droundy@jdj5.mit.edu
Thu, 21 Aug 2003 17:32:32 -0400


On Thu, Aug 21, 2003 at 10:30:33PM +0200, Konrad Hinsen wrote:
> I might also declare all my constants to be "Rational" and use
> "fromRational", but I don't know much about the "Rational" type. Do I
> have to worry about insufficient or compiler-dependent precision?

I would guess that this is the best solution.  If I remember correctly
floating constants themselves are defined in terms of fromRational, so you
shouldn't be introducing any additional conversion.
-- 
David Roundy
http://civet.berkeley.edu/droundy/