I'm writing a program in C# which suppose to calculate very small numbers. However, all my calculations are getting NaN value because they are too small for the 'double' datatype.
Is there an option in C# to deal with such situations?
Thanks, Eden.
try decimal
Edit: Also, .NET 4 introduces BigInteger which could probably be used to represent whatever floating point values\data range you are trying to represent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With