这有个高精度计算的函数运算辅助单元,希望对你有帮助:
Calculations with float numbers of unlimited precision. This is alpha version, availiable under GPL licence. Addtion, Division, Multiplication, sqrt, Ln, Exp, sin, cos, tan, arcsin, arccos, arctan and factorial are implemented.
Change Log:
version 0.02: - Read/write variable to XML
version 0.01:
- improved precision of bfVal for extended values,
- Faster PI calculation - based on pi=176*arctan(1/57)+28*arctan(1/239)-48*arctan(1/682)+96*arctan(1/12943)
- faster bfLn
- on-spot constants re-calculation
thanx to: Sasa Zeman (public@szutils.net, www.szutils.net)
version 0.0: first version available...
http://www.db-access.com/bigfloat.zip