[Haskell-cafe] [ANN] deka - decimal arithmetic

Roman Cheplyaka roma at ro-che.info
Sat Feb 8 22:00:56 UTC 2014


* Omari Norman <omari at smileystation.com> [2014-02-08 16:45:02-0500]
> Also, note that you get 34 significant digits, but that doesn't mean the
> exponent is limited to 34.
> 
> >>> let x = fromJust . strToDeka $ "3E-200"
> >>> let y = fromJust . strToDeka $ "4E-200"
> >>> x + y
> Deka {unDeka = 7E-200}
> 
> ...which you could do in Fixed, true.  If you defined E200 first.  But,
> oops, now I need E250...

I see now. So this is a decimal floating-point numbers library, which
also attempts to track the precision of numbers. Does this sound right?

Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140209/58e192a0/attachment.sig>


More information about the Haskell-Cafe mailing list