### What Is a Binary Coded Decimal

The IBinaryCodedDecimal class represents exact numerical quantities in business and commercial applications for financial calculations.

The IBinaryCodedDecimal class allows representation of up to 31 significant digits, including integral and fractional parts. The fractional part of a dollar can be represented accurately by two digits following the decimal point. You do not have to use floating-point arithmetic, which is more suitable for scientific and engineering computations. These computations often use numbers much larger than the largest that the IBinaryCodedDecimal object can store.

The same declarations and operators that you use on other data types, such as float, can be applied to IBinaryCodedDecimal objects. You can declare typedefs, arrays, and structures that have IBinaryCodedDecimal objects. You can apply arithmetic, relational, assignment, comma, conditional, equality, logical, primary, and unary operators on the IBinaryCodedDecimal object. You can pass IBinaryCodedDecimal objects in function calls.

Representing Numerical Quantities Using IBinaryCodedDecimal
Performing Calculations Using IBinaryCodedDecimal
Assigning One IBinaryCodedDecimal to Another
Assigning an IBinaryCodedDecimal to an Integer
Assigning an IBinaryCodedDecimal to a Float