Use exact numeric data types to represent exact numerical values. An exact numerical value has these characteristics:
It can be a negative, zero, or positive number.
It’s an integer or a decimal number. An integer is a whole number expressed without a decimal point: –39, 0, 62262. A decimal number has digits to the right of the decimal point: –22.06, 0.0, 0.0003, 12.34.
It has a fixed precision and scale. The precision is the number of significant digits used to express the number; it’s the total number of digits both to the right and left of the decimal point. The scale is the number of digits to the right of the decimal point. Obviously, the scale can’t exceed the precision. To represent a whole number, set the scale equal ...