O'Reilly logo

SQL: Visual QuickStart Guide by Chris Fehily

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required