Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

decimal Data Type (Visual Studio - JScript)

The decimal type is stored as a 12-byte integral part, a 1-bit sign, and a scaling factor.

The decimal type can accurately represent very large or very precise decimal numbers. Numbers as large as 7.9E+28 (positive or negative) and with as many as 28 significant digits can be stored as a decimal type without loss of precision. This type is useful for applications (such as accounting) where rounding errors must be avoided.

The corresponding .NET Framework data type is Decimal. The properties and methods of the decimal data type are the same as the Decimal properties and methods.

Community Additions

Show:
© 2017 Microsoft