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

Swiss Franc (CHF): 2 decimal places

Swiss Franc (CHF) has 2 decimal places: one CHF is 100 minor units, and amounts are stored as integers of those.ISO 4217 exponent 2 · 100 minor units per unit · Intl digits 2 · Symbol CHF

CHF 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
Positive1234561,234.561,234 Swiss Franc and 56 rappen
Negative-123456(1,234.56)negative 1,234 Swiss Franc and 56 rappen
Zero00.000 Swiss Franc
Unknown (null)null—not available

Typing CHF

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

TypedStored as
1,234.56123456
(1,234.56)-123456
1.2k120000
=1200+340*2188000

Split without losing a minor unit

100.00 CHF 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.34
  • 33.33
  • 33.33
  • = 100.00

On a check

One thousand two hundred thirty-four CHF and 56/100 only

The fraction is over 100 because CHF has 2 decimal places. Write any amount in words.

CHF 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.56 CHF, stored as the integer 123456
<Money accounting value={{ amount: 123456, currency: "CHF" }} />

Also stored at 2 decimal places

Work with it

Tools that read CHF at its own exponent.