I read that the Decimal
type has a range of (-7.9 x 10^28 to 7.9 x 10^28) / (10^0 to 10^28) and that it is "appropriate for financial and monetary calculations."
I can't seem to find a source that says that Decimal can represent to the penny all values from ($79,000,000,000,000,000,000,000,000,000.00) to $79,000,000,000,000,000,000,000,000,000.00.
Decimal
is a 128-bit type, and 128-bits could represent every penny from -10^38 to 10^38. But I don't know how Decimal is implemented, so as with float
s there could be penny precision loss the further the number goes from 0.