.NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library
by Brad Abrams
Description
The System.Decimal type can represent values from approximately –7.9 × 1028 to 7.9 × 1028, with 28 or 29 significant digits. The System.Decimal data type is ideally suited to financial calculations that require a large number of significant digits and no round-off errors.
The finite set of values of type decimal are of the form –1s × c × 10-f, where the sign s is 0 or 1, the coefficient c is given by 0 <= c < 296, and the scale f is such that 0 <= f <= 28.
A System.Decimal is represented as a 96-bit integer scaled by a power of ten. For a System.Decimal with an absolute value less than 1.0, the value is exact to the 28th decimal place, but no further. For a System.Decimal with an absolute value greater than or equal to 1.0, the value ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access