.NET Framework Library for arbitrary digit precisi

2019-01-28 17:51发布

I'm reviving this question, and making it more specific: Is there a .NET framework library that supports numbers with arbitrary digits of precision?

9条回答
Evening l夕情丶
2楼-- · 2019-01-28 18:42

Check this link http://jsfromhell.com/classes/bignumber its a javascript code but you can easily convert it to your own in any language or in C#.

查看更多
成全新的幸福
3楼-- · 2019-01-28 18:46

Perhaps surprisingly, the Bailey-Borwein-Plouffe formula gives an incremental procedure for computing the next binary or hexadecimal digit of pi without needing to store all the previous digits.

查看更多
三岁会撩人
4楼-- · 2019-01-28 18:48

You could try the old method of mantissa. Basically you could have an 64 bit integer for storing the number and then a 64 bit integer for storing the exponent (which could be negative). You could build your own object type and overload the arithmetic operators, so it will be treated as a single number. It will require some work, but I think it will be your best option.

查看更多
登录 后发表回答