Haskell question

Marcin 'Qrczak' Kowalczyk [email protected]
29 Dec 2000 00:04:06 GMT


Thu, 28 Dec 2000 18:04:38 -0500, Scott <[email protected]> pisze:

> Maybe a rounding error somewhere?

Indeed. (**) is floating-point power. Use (^) instead.

(^) requires an integer nonnegative exponent and does _not_ force a
floating point base like (**) does - the base can be any numeric type.
It will default to Integer in your case.

-- 
 __("<  Marcin Kowalczyk * [email protected] http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK