-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_CS02
-
Fix Version/s: V4.0_ERRATA01
-
Component/s: CSDL XML
-
Labels:None
-
Environment:
[Applied]
-
Proposal:
The current text says
A decimal property MAY define a non-negative integer value or variable for the Scale attribute.
This attribute specifies the maximum number of digits allowed to the right of the decimal point.
The value variable means that the number of digits to the right of the decimal point may vary from zero to the value of the Precision attribute.
The value of the Scale attribute MUST be less than or equal to the value of the Precision attribute.
Unfortunately this conflicts with the ABNF rule decimalValue that makes the fractional part optional but requires at least one digit in the integer part, so if Precision limits the number of digits to e.g. 10, at most 9 digits can be to the right of the decimal point.
Also the text does not make clear that a numeric Scale value implies a fixed-point number with Scale fractional digits and Precision-Scale integer digits, and that the only variability is to remove leading zeroes from the integer part and trailing zeroes from the fractional part.