Central African CFA Franc
XAFPrimary country: Central Africa
Symbol
FCFA
Decimal Places
0
ISO Numeric
950
Formatting Example
FCFA 123,456
Usage in Code
// JavaScript Intl.NumberFormat
new Intl.NumberFormat('en', {
style: 'currency',
currency: 'XAF'
}).format(1234.56)
// → "FCFA 123,456"
// ISO 4217 code: XAF
// Numeric code: 950
// Minor unit: 0 decimal placesAbout Central African CFA Franc
The Central African CFA Franc (XAF) is the official currency of Central Africa, identified by the ISO 4217 code "XAF" and numeric code 950. Its symbol is FCFA, and amounts are typically formatted with 0 decimal places (e.g., FCFA 123,456).
In software development, currency codes are essential for e-commerce, financial applications, and internationalization. The JavaScript Intl.NumberFormat API supports formatting amounts in XAF 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 (0) to correctly convert between major and minor units. APIs like exchangeratesapi.io and Open Exchange Rates provide real-time conversion rates for XAF.