Tunisian Dinar
TNDPrimary country: Tunisia
Symbol
TND
Decimal Places
3
ISO Numeric
788
Formatting Example
TND 1,234.567
Usage in Code
// JavaScript Intl.NumberFormat
new Intl.NumberFormat('en', {
style: 'currency',
currency: 'TND'
}).format(1234.56)
// → "TND 1,234.567"
// ISO 4217 code: TND
// Numeric code: 788
// Minor unit: 3 decimal placesAbout Tunisian Dinar
The Tunisian Dinar (TND) is the official currency of Tunisia, identified by the ISO 4217 code "TND" and numeric code 788. Its symbol is TND, and amounts are typically formatted with 3 decimal places (e.g., TND 1,234.567).
In software development, currency codes are essential for e-commerce, financial applications, and internationalization. The JavaScript Intl.NumberFormat API supports formatting amounts in TND with locale-aware separators and symbols. Payment processors like Stripe and PayPal require ISO 4217 currency codes when processing transactions.
When building multi-currency applications, store amounts in the smallest unit (e.g., cents for USD) to avoid floating-point precision errors. Use the decimal places value (3) to correctly convert between major and minor units. APIs like exchangeratesapi.io and Open Exchange Rates provide real-time conversion rates for TND.