๐Ÿ‡ฒ๐Ÿ‡ฆ

Morocco

CLDR Locale:
ISO: MA / MARRegion: AfricaDigits: western

Try It โ€” Live Preview

Number
1.234.567,89
Currency (MAD)
โ€1.234.567,89ย ุฏ.ู….โ€
Percentage
1.234.568โ€Ž%โ€Ž
Compact
1,2ย ู…ู„ูŠูˆู†

Format Rules

Decimal Separator
,comma
Thousands Separator
.period
Grouping Pattern
3
Negative Format
โ€Ž-1.234.567,89
Currency Symbol
MAD (MAD)
Currency Position
After number with space โ†’ 1.234.567,89ย MAD
Percent Position
After number with space โ†’ 13โ€Ž%โ€Ž
Zero
0,00
Compact
1,2ย ู…ู„ูŠูˆู†

Code Examples

// Basic number
new Intl.NumberFormat('ar-MA').format(1234567.89)
// โ†’ "1.234.567,89"

// Currency
new Intl.NumberFormat('ar-MA', {
  style: 'currency',
  currency: 'MAD'
}).format(1234567.89)
// โ†’ "1.234.567,89ย MAD"

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

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

Negative Number Formats

Standardโ€Ž-1.234.567,89
new Intl.NumberFormat('ar-MA').format(-1234567.89)
Accounting style(ุœ1.234.567,89ย ุฏ.ู….โ€)
new Intl.NumberFormat('ar-MA', { style: 'currency', currency: 'MAD', currencySign: 'accounting' }).format(-1234567.89)

Edge Cases & Notes

ar-MA uses Western digits (unlike ar-SA). French (fr-MA) also widely used.