Bahraini Dinar
BHDPrimary country: Bahrain
Symbol
BD
Decimal Places
3
ISO Numeric
048
Formatting Example
BD1,234.567
Usage in Code
// JavaScript Intl.NumberFormat
new Intl.NumberFormat('en', {
style: 'currency',
currency: 'BHD'
}).format(1234.56)
// → "BD1,234.567"
// ISO 4217 code: BHD
// Numeric code: 048
// Minor unit: 3 decimal placesAbout Bahraini Dinar
The Bahraini Dinar (BHD) is the official currency of Bahrain, identified by the ISO 4217 code "BHD" and numeric code 048. Its symbol is BD, and amounts are typically formatted with 3 decimal places (e.g., BD1,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 BHD 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 BHD.