# BR-DEC-20

> The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.

Checked against Peppol BIS Billing 3.0 2026.5

Canonical: https://einvoicecheck.eu/rules/br-dec-20

## Official rule text

The allowed maximum number of decimals for the VAT category tax amount (BT-117) is 2.

## Why did my invoice fail BR-DEC-20?

The VAT category tax amount (BT-117), the VAT calculated for one VAT breakdown (BG-23) at its rate, may carry at most two decimal places. This guarantees the per-category tax figure matches the invoice VAT total and the currency's minor-unit precision.

## Common causes

- Computing taxable amount x rate as a float without rounding (e.g. 210.0000000001)
- Emitting full precision from a decimal library instead of quantizing to 2 places
- Currency conversion of the VAT amount yielding 3+ decimals

## How do I fix it?

```
Quantize to 2 decimals: <cac:TaxSubtotal><cbc:TaxAmount currencyID="EUR">210.00</cbc:TaxAmount>...</cac:TaxSubtotal>
```
