# F-LIB334

Source: https://xmlvalid.com/rules/F-LIB334

> The TaxCategory/Percent must contain a decimal value with maximum 2 decimals.

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2, OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2, OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Test: `(cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT') and ((cac:TaxCategory/cbc:Percent = '') or (string-length(substring-after(cac:TaxCategory/cbc:Percent, '.')) > 2))`

Validate a document against these rules: https://xmlvalid.com/validate
