.NET Framework Library for arbitrary digit precision

后端 未结 8 1196
执笔经年
执笔经年 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:33

    You can use decimal type which gives you 28-29 significant digits

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题