Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 C# 编写一个程序,它假设计算非常小的数字。但是,我所有的计算都得到了 NaN 值,因为它们对于“双”数据类型来说太小了。
C# 中是否有处理这种情况的选项?
谢谢,伊甸园。
试试十进制
编辑:此外,.NET 4 引入了BigInteger,它可能用于表示您尝试表示的任何浮点值\数据范围。