Tanzania Number Format
Try It β Live Preview
Format Rules
Tanzania formatting implementation notes
For Tanzania, format numbers with the explicit locale sw-TZ; the reference value 1234567.89 renders as 1,234,567.89.
Tanzania's reference format uses "." as the decimal mark and comma (",") for grouping. The integer uses repeating groups of three digits. Pass "sw-TZ" directly to Intl.NumberFormat instead of replacing punctuation in a preformatted string.
TZS is shown with TSh immediately before the amount; the same reference value renders as TSh1,234,567.89. The percent sign appears immediately after the amount. Use the ISO currency code for storage and interchange because a visible symbol can be shared by unrelated currencies.
Western 0β9 digits are the page's reference digit system, and the negative pattern is -n. This country is multilingual in software contexts: also test en-TZ, because language selection can change spacing, punctuation, and currency display without changing the region. Validate output with formatToParts() when spacing, signs, or bidirectional literals affect the interface.
- Locale: sw-TZ
- Decimal and grouping: 1,234,567.89
- Currency: TZS β TSh1,234,567.89
- Digits: Western 0β9 digits
Reviewed 19 July 2026. Sources: Unicode locale number formats Β· Intl.NumberFormat reference
Code Examples
// Basic number
new Intl.NumberFormat('sw-TZ').format(1234567.89)
// β "1,234,567.89"
// Currency
new Intl.NumberFormat('sw-TZ', {
style: 'currency',
currency: 'TZS'
}).format(1234567.89)
// β "TSh1,234,567.89"
// Percentage
new Intl.NumberFormat('sw-TZ', {
style: 'percent',
minimumFractionDigits: 1
}).format(0.125)
// Compact notation
new Intl.NumberFormat('sw-TZ', {
notation: 'compact'
}).format(1234567)Negative Number Formats
new Intl.NumberFormat('sw-TZ').format(-1234567.89)new Intl.NumberFormat('sw-TZ', { style: 'currency', currency: 'TZS', currencySign: 'accounting' }).format(-1234567.89)Continue your localization implementation
Connect this reference to the format, validation, and testing guidance used elsewhere on the site.
Locale-aware numbers
Separators, grouping, currency precision, and Intl.NumberFormat patterns.
Localization testing
Pseudolocalization, test matrices, native review, and regional release gates.
Address and phone standards
UPU S42, E.164, adaptive forms, storage, parsing, and validation.
I18n architecture
Messages, Unicode, RTL, locale services, fallbacks, and delivery workflow.
Currency reference
ISO 4217 codes, symbols, minor units, and implementation examples.
Address formats
Country templates, field order, and accessible international forms.
Phone formats
E.164 storage, regional display, parsing, and validation.
Compare locales
Inspect the same numeric value across several country formats.
Interactive tools
Try number, address, and phone formatting in your browser.