Rules / IBR-002-AE
Currency exchange rate should contain the values till maximum of 6 decimal places
Currency exchange rate [BTAE-04] should contain the values till maximum of 6 decimal places.
Fails
<cbc:CalculationRate>3.67250000</cbc:CalculationRate>
Fix
Write cbc:CalculationRate as a plain number with at most 6 decimals, for example 3.6725.
Schematron
- Context
cbc:CalculationRate- Test
matches(., concat('^[0-9]+(\.[0-9]', codepoints-to-string(123), '1,6', codepoints-to-string(125), ')?$'))
Official text: Currency exchange rate [BTAE-04] should contain the values till maximum of 6 decimal places.