BCD math library for arbitrary big numbers?

眉间皱痕 提交于 2019-12-30 08:28:29

问题


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 ?


回答1:


This is an open source unit that I have used in the past for math with 'unlimited' sized integers: http://www.koders.com/delphi/fidB46DDCCA26267DE4B4FB0F7E041A8033A3783AD6.aspx

Would that be what you were looking for?




回答2:


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.



来源:https://stackoverflow.com/questions/9690133/bcd-math-library-for-arbitrary-big-numbers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!