|
RE: Documentation bug? {Numeric,GHC.Float}.floatToDigits: requires anon-neg: msg#00039lang.haskell.glasgow.bugs
Good point. I've fixed GHC's online documentation as you suggest. For the H98 report I'll put it in the bug list. Simon | -----Original Message----- | From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx [mailto:glasgow-haskell-bugs- | bounces@xxxxxxxxxxx] On Behalf Of Andy Moran | Sent: 11 February 2004 19:13 | To: glasgow-haskell-bugs@xxxxxxxxxxx | Subject: Documentation bug? {Numeric,GHC.Float}.floatToDigits: requires anon-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 | | _______________________________________________ | Glasgow-haskell-bugs mailing list | Glasgow-haskell-bugs@xxxxxxxxxxx | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: GHC 5.05 panic in speceval_2 branch, Simon Peyton-Jones |
|---|---|
| Next by Date: | Re: GHC 5.05 panic in speceval_2 branch, Robert Ennals |
| Previous by Thread: | Documentation bug? {Numeric,GHC.Float}.floatToDigits: requires a non-negative argument, Andy Moran |
| Next by Thread: | Re: ghc-pkg 6.2 incorrectly parses commas within quotes, Ashley Yakeley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |