Skip to content

Commit 6931a3f

Browse files
committed
Update README with clearer input mode terminology
1 parent 06af2c5 commit 6931a3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Perfect for financial apps, calculators, and any application that needs professi
1919
- 🧩 **Modular Design** - Use core logic only or with UI components
2020
- 🔧 **Highly Configurable** - Decimal places, separators, max digits
2121
- 📊 **Structured Data** - Get raw digits, formatted display, and full formatted display
22-
- 🎚️ **Two Input Modes** - FRACTIONAL (cents mode) or FIXED_DECIMALS (dollar mode) with zero-padding
22+
- 🎚️ **Two Input Modes** - FRACTIONAL (decimal-first mode) or FIXED_DECIMALS (integer-first mode) with zero-padding
2323

2424
## 📦 Installation
2525

@@ -216,7 +216,7 @@ formatter.format("000123") // Removes leading zeros → "123" → "1.23"
216216

217217
Choose between two input interpretation modes:
218218

219-
### FRACTIONAL Mode (Default - "Cents Mode")
219+
### FRACTIONAL Mode (Default - "Decimal-First Mode")
220220

221221
Traditional behavior where digits fill decimal places from the right. Perfect for cash registers and financial apps.
222222

@@ -233,7 +233,7 @@ formatter.format("123") // "1.23" ($1.23)
233233
formatter.format("123456") // "1,234.56"
234234
```
235235

236-
### FIXED_DECIMALS Mode ("Dollar Mode")
236+
### FIXED_DECIMALS Mode ("Integer-First Mode")
237237

238238
Treats input as whole numbers and pads decimals with zeros. Also accepts formatted input with decimal separators. Ideal for measurements, weights, and scientific notation.
239239

0 commit comments

Comments
 (0)