Uruguayan Peso (Indexed Units) (UYI): 0 decimal places
UYI 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 | 1235 | 1,235 | 1,235 Uruguayan Peso (Indexed Units) |
| Negative | -1235 | (1,235) | negative 1,235 Uruguayan Peso (Indexed Units) |
| Zero | 0 | 0 | 0 Uruguayan Peso (Indexed Units) |
| Unknown (null) | null | — | not available |
Typing UYI
What a person types, and the integer it is stored as at UYI's exponent. Rounded once, at the end.
| Typed | Stored as |
|---|---|
| 1,234.56 | 1235 |
| (1,234.56) | -1235 |
| 1.2k | 1200 |
| =1200+340*2 | 1880 |
UYI has no fraction, so 1,234.56 is rounded to the nearest whole UYI when it is read.
Split without losing a minor unit
100 UYI 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.
- 34
- 33
- 33
- = 100
On a check
One thousand two hundred thirty-five UYI only
The fraction is over 1 because UYI has 0 decimal places. Write any amount in words.
UYI 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,235 UYI, stored as the integer 1235
<Money accounting value={{ amount: 1235, currency: "UYI" }} />Also stored at 0 decimal places
Work with it
Tools that read UYI at its own exponent.