Separator readings record
Decimal separator: the same digits, two readings
Accepted inputs
- Token and separator roles
- ١٬٢٣٤
- Declared numbering system
- Arabic Indic digits
- Separator role in reading A
- Grouping separator
- Separator role in reading B
- Decimal separator
Authoritative results
- Reading A
- ١٢٣٤ ()
- Reading B
- ١٫٢٣٤ ()
- A minus B
- ١٢٣٢٫٧٦٦ ()
- Absolute difference
- ١٢٣٢٫٧٦٦ ()
- Larger to smaller ratio
Record fields
- Calculation version
- 1.0.0
- Unicode data version
- 17.0.0
- Boundary
- The page accepts nonnegative digits from one numbering system and one declared separator, requires three digits after a grouping separator, and does not interpret currency, units or outside rounding rules.
- Ordered calculation trace
- Verify that every digit belongs to the declared numbering system. Build reading A from the role declared by the visitor. Build reading B from the other declared role. Subtract the values with integer and exact fraction arithmetic. Report the absolute difference and the ratio when the smaller value is not zero.
- Source anchors
- CLDR number symbol charts; ECMA 402 specification; Unicode bidirectional algorithm