BCD数学库为任意大数字? [英] BCD math library for arbitrary big numbers?

查看:179
本文介绍了BCD数学库为任意大数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个替代Delphi Data.FmtBcd库,因为我刚刚达到极限,如最大十进制数字,它可以表示和程序终止与 EBcdOverflowException 。为了好奇,我正在计算算术系列成员,需要处理非常大的数字 - 数十万个职位并不罕见。并在合理的时间内得到结果。为了测试目的,我将部分代码重写为Python 3.2,计算速度足以满足Delphi的等效性。



有些建议用于此类库,最好是免费或开源?

解决方案

看看TurboPower SysTools4,可在:



http://sourceforge.net/projects/tpsystools/



它包含一个高精度浮点数学单元,使用BCD,用于Delphi。


I'm looking for a replacement of the stock Delphi Data.FmtBcd library because I just hit its limits like maximum decimal digits it can represent and program terminates with EBcdOverflowException. For the curious, I'm calculating arithmetic series members and need to handle very large numbers - hundred-thousands positions are not so uncommon. And also get results in a reasonable time. I did rewritten part of the code to Python 3.2 for the testing purposes and calculation speed would be sufficient for the Delphi's equivalent.

Some recommendations for a such library, preferably free or opensource ?

解决方案

Take a look at TurboPower SysTools4, which is available at:

http://sourceforge.net/projects/tpsystools/

It contains a High-Precision Floating Point Math Unit, using BCD, for Delphi.

这篇关于BCD数学库为任意大数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆