Chilean Unit of Account (UF) (CLF): 4 decimal places
Chilean Unit of Account (UF) (CLF) has 4 decimal places: one CLF is 10,000 minor units, and amounts are stored as integers of those.ISO 4217 exponent 4 · 10,000 minor units per unit · Intl digits 4 · Symbol CLF
CLF in a statement
The same integer in every state a statement can be in. Null is not zero: unknown renders as a dash, never as a zero amount.
| Value | Stored (minor units) | Statement | Money component |
|---|---|---|---|
| Positive | 12345600 | 1,234.5600 | 1,234 Chilean Unit of Account (UF) and 5600 minor units |
| Negative | -12345600 | (1,234.5600) | negative 1,234 Chilean Unit of Account (UF) and 5600 minor units |
| Zero | 0 | 0.0000 | 0 Chilean Unit of Account (UF) |
| Unknown (null) | null | — | not available |
Typing CLF
What a person types, and the integer it is stored as at CLF's exponent. Rounded once, at the end.
| Typed | Stored as |
|---|---|
| 1,234.56 | 12345600 |
| (1,234.56) | -12345600 |
| 1.2k | 12000000 |
| =1200+340*2 | 18800000 |
Split without losing a minor unit
100.0000 CLF split three ways. Rounding each third leaves a remainder; largest-remainder allocation hands it out one minor unit at a time, so the parts always sum to the whole.
- 33.3334
- 33.3333
- 33.3333
- = 100.0000
On a check
One thousand two hundred thirty-four CLF and 5600/10000 only
The fraction is over 10,000 because CLF has 4 decimal places. Write any amount in words.
CLF in React
The component reads the exponent from the currency code; you pass the integer and the code, never a float and never a decimal count.
import { Money } from "@/components/ledger/money";
// 1,234.5600 CLF, stored as the integer 12345600
<Money accounting value={{ amount: 12345600, currency: "CLF" }} />Also stored at 4 decimal places
Work with it
Tools that read CLF at its own exponent.