🇰🇪

Kenya

CLDR Locale:
ISO: KE / KENRegion: AfricaDigits: western

Try It — Live Preview

Number
1,234,567.89
Currency (KES)
Ksh 1,234,567.89
Percentage
1,234,568%
Compact
M1.2

Format Rules

Decimal Separator
.period
Thousands Separator
,comma
Grouping Pattern
3
Negative Format
-1,234,567.89
Currency Symbol
KSh (KES)
Currency Position
Before number KSh1,234,567.89
Percent Position
After number 13%
Zero
0.00
Compact
M1.2

Code Examples

// Basic number
new Intl.NumberFormat('sw-KE').format(1234567.89)
// → "1,234,567.89"

// Currency
new Intl.NumberFormat('sw-KE', {
  style: 'currency',
  currency: 'KES'
}).format(1234567.89)
// → "KSh1,234,567.89"

// Percentage
new Intl.NumberFormat('sw-KE', {
  style: 'percent',
  minimumFractionDigits: 1
}).format(0.125)

// Compact notation
new Intl.NumberFormat('sw-KE', {
  notation: 'compact'
}).format(1234567)

Negative Number Formats

Standard-1,234,567.89
new Intl.NumberFormat('sw-KE').format(-1234567.89)
Accounting style-Ksh 1,234,567.89
new Intl.NumberFormat('sw-KE', { style: 'currency', currency: 'KES', currencySign: 'accounting' }).format(-1234567.89)