Skip to content
Keyboard shortcuts
Esc
Everywhere
Search the site
⌘K
Search the site
/
Show these shortcuts
?
Close what is open
Esc
Talk to us

Uruguayan Nominal Wage Index Unit (UYW): 4 decimal places

Uruguayan Nominal Wage Index Unit (UYW) has 4 decimal places: one UYW 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 UYW

UYW 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.

ValueStored (minor units)StatementMoney component
Positive123456001,234.56001,234 Uruguayan Nominal Wage Index Unit and 5600 minor units
Negative-12345600(1,234.5600)negative 1,234 Uruguayan Nominal Wage Index Unit and 5600 minor units
Zero00.00000 Uruguayan Nominal Wage Index Unit
Unknown (null)null—not available

Typing UYW

What a person types, and the integer it is stored as at UYW's exponent. Rounded once, at the end.

TypedStored as
1,234.5612345600
(1,234.56)-12345600
1.2k12000000
=1200+340*218800000

Split without losing a minor unit

100.0000 UYW 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 UYW and 5600/10000 only

The fraction is over 10,000 because UYW has 4 decimal places. Write any amount in words.

UYW 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.

tsx
import { Money } from "@/components/ledger/money";

// 1,234.5600 UYW, stored as the integer 12345600
<Money accounting value={{ amount: 12345600, currency: "UYW" }} />

Also stored at 4 decimal places

Work with it

Tools that read UYW at its own exponent.