RE: Standard Decimal Arithmetic
[email protected] (Tels) Mon, 17 Dec 2001 11:48:31 +0100 (CET)
| Newsgroups | perl.perl6.internals.bignum |
|---|---|
| Organization | none |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Moin, On 17-Dec-01 Alex Gough tried to scribble about: > Can I propose that we aim to support the Standard Decimal Arithmetic, > this will allow us to make use of an extensive test suite and claim > Enterprise-Bonus-Points at the appropriate time: > > http://www2.hursley.ibm.com/decimal/ Will looking into that for Perl 5 Bigint. > Looking through the current code, I wonder why we are bothering to > have a distinction between the fractional and integer parts of each > number, to me it seems simpler to use a single string of digits with a > signed exponent as multiplying two numbers then merely requires > multiplying the digit strings and adding the exponents directly. You should check out Math::BigFloat and see how it deals with that. Cheers, Tels - -- perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"' confidentially cluster error-free content http://bloodgate.com/perl My current Perl projects PGP key available on http://bloodgate.com/tels.asc or via email -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: latin1 iQEVAwUBPB3M43cLPEOTuEwVAQGqsgf/SEqp8WDKcESR3f0Pq9mIDhZs9czTnfLh IZNBTz9gbngsalRHj5QQ0sPgTl1ev7cHxbrRG9XcAIePLg/YTrdIa3ZRs2tTQG6B lHhMPVlEBpnWpHu2SPY4V/MhD2Ls56rQtl5zrCIaQVjz40/ZAq9eL4GiePVMMdIo UBxKBkzC5HdTaI72Yx/bEicb6zwGSRulBn5MyIAdYxvoFEbjX54QZmGhqqfPqoGn AA/0TDR4XaOG4/Tl6NpJ2AJDx0R6Rgevgiezvailcf4DXvuJ58C/zYdc/sVa/rx+ Z04FCKvnh1372XryYH04zmFlvY3Nc4/Vc0il+9lm7gFqKfJCl307JQ== =xy4R -----END PGP SIGNATURE-----