.NET Framework Library for arbitrary digit precision

后端 未结 8 1202
执笔经年
执笔经年 2020-12-21 15:05

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

8条回答
  •  暖寄归人
    2020-12-21 15:34

    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.

提交回复
热议问题