MIN_SCALE
Purpose
This function returns the minimum scale needed to represent the value exactly. This is equivalent to the number of fractional decimal digits in the value excluding trailing zeroes.
Syntax
min_scale::=
Usage Notes
The argument must be an exact numeric type. The return type is DECIMAL(2, 0).
Example
S1 | S2 | S3 |
0 | 11 | 5 |