Omani Rial
OMRPrimary country: Oman
Symbol
ر.ع.
Decimal Places
3
ISO Numeric
512
Formatting Example
ر.ع.1,234.567
Usage in Code
// JavaScript Intl.NumberFormat
new Intl.NumberFormat('en', {
style: 'currency',
currency: 'OMR'
}).format(1234.56)
// → "ر.ع.1,234.567"
// ISO 4217 code: OMR
// Numeric code: 512
// Minor unit: 3 decimal placesAbout Omani Rial
The Omani Rial (OMR) is the official currency of Oman, identified by the ISO 4217 code "OMR" and numeric code 512. Its symbol is ر.ع., and amounts are typically formatted with 3 decimal places (e.g., ر.ع.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 OMR 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 OMR.