What’s the second minimum value that a decimal can represent? That is the value which is larger than Decimal.MinValue and smaller than any other values that a decimal can represent. How can I obtain this value in C#? Thanks!
What’s the second minimum value that a decimal can represent? That is the value
Share
The second-minimum value is
Decimal.MinValue + 1.This can be inferred from the documentation for
decimal:From the above we can infer that on the extreme edges of the legal value range, the scaling factor is
1(10 to the power 0) and therefore that’s the smallest quantum when a decimal value is modified.Live proof.