logo       

Documentation bug? {Numeric,GHC.Float}.floatToDigits: requires a non-negati: msg#00037

lang.haskell.glasgow.bugs

Subject: Documentation bug? {Numeric,GHC.Float}.floatToDigits: requires a non-negative argument


The library report doesn't seem to mention this, but giving floatToDigits a
negative number leads to nonsensical answers:

Prelude> Numeric.floatToDigits 10 (-3.1415)
([-32,5,8,5],0)

Now, this probably makes perfect sense, but shouldn't the doco mention the
fact that floatToDigits requires a non-negative number? It does for other
functions that require non-negative arguments.

A

--
Andy Moran Ph. (503) 626 6616, x113
Galois Connections Inc. Fax. (503) 350 0833
12725 SW Millikan Way, Suite #290 http://www.galois.com
Beaverton, OR 97005 moran@xxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise