Udostępnij za pośrednictwem


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.

Properties and Methods

Decimal

Requirements

Version .NET

See Also

Concepts

Data Type Summary

Other Resources

Data Types (Visual Studio - JScript)