
13 Jan
2008
13 Jan
'08
12:09 a.m.
G'day all.
Quoting Henning Thielemann
The rare cases occur for big numbers. http://www.haskell.org/haskellwiki/Generic_number_type#isSquare
How big, you might ask? Prelude> let dd = undefined :: Double in floatRadix dd ^ floatDigits dd 9007199254740992 Pretty big, and covering enough cases that it's worth the optimisation when it applies: http://andrew.bromage.org/darcs/numbertheory/Math/Util.hs Cheers, Andrew Bromage