Skip to main content

Posts

Showing posts with the label Floating-Point Types

Numeric Data Type

       For storing numeric data, MySQL provides integer data  types, floating-point types that store approximate-value (real) numbers, a fixed-point type that stores exact-value (real) numbers, and a BIT type for bit-field  values.  When numeric data type is chosen, consider the following factors:   •   The range of values the data type represents   •   The amount of storage space that column values require   •   The column precision and scale for floating-point and fixed-point values   Precision and scale are terms that apply to floating-point and fixed-point values, which can have both an  integer part and a fractional part. Precision is the number of significant digits. Scale is the number of digits  to the right of the decimal point.  Integer Data Type  The integer data types are summarized in the following table, which indicates the amount of storage per  value that each type requires as well as its ra nge.  For integer values declared with the  UNSIGN