Comorian Franc
KMFPrimary country: Comoros
Symbol
CF
Decimal Places
0
ISO Numeric
174
Formatting Example
CF 12,345
Usage in Code
// JavaScript Intl.NumberFormat
new Intl.NumberFormat('en', {
style: 'currency',
currency: 'KMF'
}).format(1234.56)
// → "CF 12,345"
// ISO 4217 code: KMF
// Numeric code: 174
// Minor unit: 0 decimal placesAbout Comorian Franc
The Comorian Franc (KMF) is the official currency of Comoros, identified by the ISO 4217 code "KMF" and numeric code 174. Its symbol is CF, and amounts are typically formatted with 0 decimal places (e.g., CF 12,345).
In software development, currency codes are essential for e-commerce, financial applications, and internationalization. The JavaScript Intl.NumberFormat API supports formatting amounts in KMF 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 KMF.