Haskell question

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
29 Dec 2000 00:04:06 GMT


Thu, 28 Dec 2000 18:04:38 -0500, Scott <adric@wipcradio.cc> 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 * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK