decimal
Creates a numeric column, with the specified name, for storing numbers with the specified precision and scale.
To store the decimal 123.45
, precision would have to be set to 5 (as there are five digits in total) and scale to 2 (as there are two digits behind the decimal point).
Parameters
name
Name of the column.
precision
Total count of significant digits in the whole number, that is, the number of digits to both sides of the decimal point.
scale
Count of decimal digits in the fractional part.