The allowed maximum number of decimals for the Document level charge base amount (BT-100) is 2.
/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
string-length(substring-after(cbc:BaseAmount,'.'))<=2