currency : Java Glossary

go to home page C words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
The CurrCon Java Applet displays prices on this web page converted with today’s exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires Java 1.1 or later, preferably 1.6.0_17. If you can’t see the prices, or if you just want to learn more about CurrCon, click here for help.
currency
The temptation is to use double to handle currency. The problem is the inherent imprecision. You will forever be out by a penny unless you are extremely careful. Using double may, even so, still be the best way to go for handling international currency where you have a variable number of decimal places. For perfect precision, consider scaled longs, scaled BigIntegers or BigDecimal. For handling US or Canadian currency, consider using integral pennies stored in a long internally, putting in a decorative decimal point for output. Here is an input and output routine you can use to handle US/Canadian currency.
World Currencies by Country
Country Currency Code Notes
AfghanistanAfghaniAFA 
AlbaniaLekALL 
AlgeriaDinarDZD 
AndorraFrancADF 
AndorraPesetaADP 
AngolaNew KwanzaAON 
ArgentinaPesoARS 
ArubaFlorinAWG 
AustraliaDollarAUD 
AustriaSchillingATSnow EUR
BahamasDollarBSD 
BahrainDinarBHD 
BangladeshTakaBDT 
BarbadosDollarBBD 
BelgiumFrancBEFnow EUR
BelizeDollarBZD 
BermudaDollarBMD 
BhutanNgultrumBTN 
BoliviaBolivianoBOB 
BotswanaPulaBWP 
BrazilRealBRL 
BritainPound SterlingGBPinformally £0.25 = crown, £0.50 = 10 bob, £1 = 1 quid, £25 = pony, £500 = monkey, £100 also £1000 = one-er
BruneiDollarBND 
BulgariaLevBGL 
BurundiFrancBIF 
CambodiaRielKHR 
CanadaDollarCADinformally: $1 = loon, $2 = toonie
Cape VerdeEscudoCVE 
Cayman IslandsDollarKYD 
Central PacificFrancCFP 
CFAFranc BCEAOXOF 
CFAFranc BEACXAF 
ChilePesoCLP 
ChinaYuan RenminbiCNY 
ColombiaPesoCOP 
ComorosFrancKMF 
Costa RicaColonCRC 
CroatiaKunaHRK 
CubaPesoCUP 
CyprusPoundCYP 
CzechoslovakiaKorunaCSK 
DenmarkKroneDKK 
DjiboutiFrancDJF 
Dominican RepublicR. PesoDOP 
East CaribbeanDollarXCD 
ECUECUXEUnow EUR
EcuadorSucreECS 
EgyptPoundEGP 
El SalvadorColonSVC 
EstoniaKroonEEK 
EthiopiaBirrETB 
EuroEuroEUR 
Falkland IslandsPoundFKP 
FijiDollarFJD 
FinlandMarkkaFIMnow EUR
FranceFrancFRFnow EUR
GambiaDalasiGMD 
GermanyMarkDEMnow EUR
GhanaCediGHC 
GibraltarPoundGIP 
Gold(oz.)XAU 
GreeceDrachmaGRDnow EUR
GuatemalaQuetzalGTQ 
GuineaFrancGNF 
GuyanaDollarGYD 
HaitiGourdeHTG 
HondurasLempiraHNL 
Hong KongDollarHKD 
HungaryForintHUF 
IcelandKronaISK 
IndiaRupeeINR 
IndonesiaRupiahIDR 
IranRialIRR 
IraqDinarIQD 
IrelandPuntIEPnow EUR
IsraelNew ShekelILS 
ItalyLiraITLnow EUR
JamaicaDollarJMD 
JapaneseYenJPY 
JordanDinarJOD 
KazakhstanTengeKZT 
KenyaShillingKES 
KuwaitDinarKWD 
LaoKipLAK 
LatviaLatsLVL 
LebanonPoundLBP 
LesothoLotiLSL 
LiberiaDollarLRD 
LibyaDinarLYD 
LithuaniaLitasLTL 
LuxembourgFrancLUFnow EUR
MacauPatacaMOP 
MalagasyFrancMGF 
MalawiKwachaMWK 
MalaysiaRinggitMYR 
MaldiivesRufiyaaMVR 
MaltaLiraMTL 
MauritaniaOuguiyaMRO 
MauritiusRupeeMUR 
MexicaPesoMXP 
MongoliaTugrikMNT 
MoroccoDirhamMAD 
MozambiqueMeticalMZM 
MyanmarKyatMMK 
NamibiaDollarNAD 
NepaleseRupeeNPR 
NetherlandsGuilderNLGnow EUR
New ZealandDollarNZD 
NicaraguanCordoba OroNIO 
NigeriaNairaNGN 
NL AntilliesGuilderANG 
North KoreaWonKPW 
NorwayKronerNOK 
OmanRialOMR 
PakistanRupeePKR 
Palladium(oz.)XPD 
PananamaBalboaPAB 
Papua New GuineaKinaPGK 
ParaguayGuaraniPYG 
PeruNuevo SolPEN 
PhilippinePesoPHP 
Platinum(oz.)XPT 
PolishZlotyPLZ 
PortugueseEscudoPTEnow EUR
QatarRialQAR 
RomaniaLeuROL 
RussiaRoubleRUB 
SamoaTalaWST 
Sao Tome/PrincipeDobraSTD 
SaudRiyalSAR 
SeychellesRupeeSCR 
Sierra LeoneLeoneSLL 
Silver(oz.)XAG 
SingaporeDollarSGD 
SlovakKorunaSKK 
SloveniaTolarSIT 
Solomon IslandsDollarSBD 
SomaliaShillingSOS 
South AfricanRandZAR 
South-KoreaWonKRW 
SpainPesetaESPnow EUR
Sri LankaRupeeLKR 
St. HelenaPoundSHP 
SudanDinarSDD 
SudanPoundSDP 
SurinameGuilderSRG 
SwazilandLilangeniSZL 
SwedenKronaSEK 
SwitzerlandFrancCHF 
SyriaPoundSYP 
TaiwanDollarTWD 
TanzaniaShillingTZS 
ThailandBahtTHB 
TongaPa’angaTOP 
Trinidad/TobagoDollarTTD 
TunisiaDinarTND 
TurkeyLiraTRL 
UgandaShillingUGS 
UkraineHryvniaUAH 
United Arab EmiratesDirhamAED 
UruguayPesoUYP 
USDollarUSDinformally $1.00 = 1 buck, $10.00 = 10-spot, $100 = Franklin or C-note, $1000 = a grand
VanuatuVatuVUV 
VenezuelaBolivarVEB 
VietnamDongVND 
YugoslaviaDinarYUN 
ZambiaKwachaZMK 
ZimbabweDollarZWD 
World Currencies by Code
Code Country Currency Notes
ADFAndorraFranc 
ADPAndorraPeseta 
AEDUnited Arab EmiratesDirham 
AFAAfghanistanAfghani 
ALLAlbaniaLek 
ANGNL AntilliesGuilder 
AONAngolaNew Kwanza 
ARSArgentinaPeso 
ATSAustriaSchillingnow EUR
AUDAustraliaDollar 
AWGArubaFlorin 
BBDBarbadosDollar 
BDTBangladeshTaka 
BEFBelgiumFrancnow EUR
BGLBulgariaLev 
BHDBahrainDinar 
BIFBurundiFranc 
BMDBermudaDollar 
BNDBruneiDollar 
BOBBoliviaBoliviano 
BRLBrazilReal 
BSDBahamasDollar 
BTNBhutanNgultrum 
BWPBotswanaPula 
BZDBelizeDollar 
CADCanadaDollarinformally: $1 = loon, $2 = toonie
CFPCentral PacificFranc 
CHFSwitzerlandFranc 
CLPChilePeso 
CNYChinaYuan Renminbi 
COPColombiaPeso 
CRCCosta RicaColon 
CSKCzechoslovakiaKoruna 
CUPCubaPeso 
CVECape VerdeEscudo 
CYPCyprusPound 
DEMGermanyMarknow EUR
DJFDjiboutiFranc 
DKKDenmarkKrone 
DOPDominican RepublicR. Peso 
DZDAlgeriaDinar 
ECSEcuadorSucre 
EEKEstoniaKroon 
EGPEgyptPound 
ESPSpainPesetanow EUR
ETBEthiopiaBirr 
EUREuroEuro 
FIMFinlandMarkkanow EUR
FJDFijiDollar 
FKPFalkland IslandsPound 
FRFFranceFrancnow EUR
GBPBritainPound Sterlinginformally £0.25 = crown, £0.50 = 10 bob, £1 = 1 quid, £25 = pony, £500 = monkey, £100 also £1000 = one-er
GHCGhanaCedi 
GIPGibraltarPound 
GMDGambiaDalasi 
GNFGuineaFranc 
GRDGreeceDrachmanow EUR
GTQGuatemalaQuetzal 
GYDGuyanaDollar 
HKDHong KongDollar 
HNLHondurasLempira 
HRKCroatiaKuna 
HTGHaitiGourde 
HUFHungaryForint 
IDRIndonesiaRupiah 
IEPIrelandPuntnow EUR
ILSIsraelNew Shekel 
INRIndiaRupee 
IQDIraqDinar 
IRRIranRial 
ISKIcelandKrona 
ITLItalyLiranow EUR
JMDJamaicaDollar 
JODJordanDinar 
JPYJapaneseYen 
KESKenyaShilling 
KHRCambodiaRiel 
KMFComorosFranc 
KPWNorth KoreaWon 
KRWSouth-KoreaWon 
KWDKuwaitDinar 
KYDCayman IslandsDollar 
KZTKazakhstanTenge 
LAKLaoKip 
LBPLebanonPound 
LKRSri LankaRupee 
LRDLiberiaDollar 
LSLLesothoLoti 
LTLLithuaniaLitas 
LUFLuxembourgFrancnow EUR
LVLLatviaLats 
LYDLibyaDinar 
MADMoroccoDirham 
MGFMalagasyFranc 
MMKMyanmarKyat 
MNTMongoliaTugrik 
MOPMacauPataca 
MROMauritaniaOuguiya 
MTLMaltaLira 
MURMauritiusRupee 
MVRMaldiivesRufiyaa 
MWKMalawiKwacha 
MXPMexicaPeso 
MYRMalaysiaRinggit 
MZMMozambiqueMetical 
NADNamibiaDollar 
NGNNigeriaNaira 
NIONicaraguanCordoba Oro 
NLGNetherlandsGuildernow EUR
NOKNorwayKroner 
NPRNepaleseRupee 
NZDNew ZealandDollar 
OMROmanRial 
PABPananamaBalboa 
PENPeruNuevo Sol 
PGKPapua New GuineaKina 
PHPPhilippinePeso 
PKRPakistanRupee 
PLZPolishZloty 
PTEPortugueseEscudonow EUR
PYGParaguayGuarani 
QARQatarRial 
ROLRomaniaLeu 
RUBRussiaRouble 
SARSaudRiyal 
SBDSolomon IslandsDollar 
SCRSeychellesRupee 
SDDSudanDinar 
SDPSudanPound 
SEKSwedenKrona 
SGDSingaporeDollar 
SHPSt. HelenaPound 
SITSloveniaTolar 
SKKSlovakKoruna 
SLLSierra LeoneLeone 
SOSSomaliaShilling 
SRGSurinameGuilder 
STDSao Tome/PrincipeDobra 
SVCEl SalvadorColon 
SYPSyriaPound 
SZLSwazilandLilangeni 
THBThailandBaht 
TNDTunisiaDinar 
TOPTongaPa’anga 
TRLTurkeyLira 
TTDTrinidad/TobagoDollar 
TWDTaiwanDollar 
TZSTanzaniaShilling 
UAHUkraineHryvnia 
UGSUgandaShilling 
USDUSDollarinformally $1.00 = 1 buck, $10.00 = 10-spot, $100 = Franklin or C-note, $1000 = a grand
UYPUruguayPeso 
VEBVenezuelaBolivar 
VNDVietnamDong 
VUVVanuatuVatu 
WSTSamoaTala 
XAFCFAFranc BEAC 
XAGSilver(oz.) 
XAUGold(oz.) 
XCDEast CaribbeanDollar 
XEUECUECUnow EUR
XOFCFAFranc BCEAO 
XPDPalladium(oz.) 
XPTPlatinum(oz.) 
YUNYugoslaviaDinar 
ZARSouth AfricanRand 
ZMKZambiaKwacha 
ZWDZimbabweDollar 
These are the abbreviations used in the CurrCon cost displays throughout this website that look like this: $100.00 USD . Just select the currency you want to see the cost in. I update the exchange rates daily. See Oanda.com for up-to-the-minute exchange rates. You can purchase the CurrCon program for use on your own website.

With Java 1.4.1 there is the java.util.Currency class for helping format currencies. It will tell you the currency for a given Locale, the three-letter abbreviation for it, how many fractional decimal places is traditional for display, and the currency symbol. Unfortunately the table that drive it are incomplete. It does not know the currencies of all countries or the currency symbols of all currencies. Most fonts don’t support many of the national currency symbols. Tahoma is better than most.


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/currency.html J:\mindprod\jgloss\currency.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.105]
You are visitor number 30,608.