|
decimal and numeric
A numeric data type with fixed-point precision and decimal places.
decimal [(p [, s])] and numeric [(p [, s])]
Fixed-point precision and decimal places. With maximum precision, valid values range from-10 ^ 38 +1 to 10 ^ 38-1. SQL-92 synonyms for decimal are dec and dec (p, s).
p (accuracy)
Specify the maximum number of decimal digits that can be stored to the left and right of the decimal point. The precision must be a value from 1 to the maximum precision. The maximum accuracy is 38.
s (number of decimal places)
Specify the maximum number of decimal digits that can be stored to the right of the decimal point. The number of decimal places must be a value from 0 to p. The default number of decimal places is 0, so 0 <= s <= p. The maximum storage size varies based on accuracy. |
|