Exact Numeric Types
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 ...
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