Java Money & Currency

This commit is contained in:
root 2017-02-27 15:13:19 -04:00
parent fc570b9e2e
commit bb1b9c4ca4
6 changed files with 269 additions and 254 deletions

View File

@ -5,38 +5,38 @@
<gesmes:name>European Central Bank</gesmes:name> <gesmes:name>European Central Bank</gesmes:name>
</gesmes:Sender> </gesmes:Sender>
<Cube> <Cube>
<Cube time='2017-02-22'> <Cube time='2017-02-27'>
<Cube currency='USD' rate='1.0513'/> <Cube currency='USD' rate='1.0587'/>
<Cube currency='JPY' rate='118.79'/> <Cube currency='JPY' rate='118.87'/>
<Cube currency='BGN' rate='1.9558'/> <Cube currency='BGN' rate='1.9558'/>
<Cube currency='CZK' rate='27.021'/> <Cube currency='CZK' rate='27.021'/>
<Cube currency='DKK' rate='7.4332'/> <Cube currency='DKK' rate='7.4331'/>
<Cube currency='GBP' rate='0.84450'/> <Cube currency='GBP' rate='0.85280'/>
<Cube currency='HUF' rate='307.53'/> <Cube currency='HUF' rate='307.69'/>
<Cube currency='PLN' rate='4.2987'/> <Cube currency='PLN' rate='4.3148'/>
<Cube currency='RON' rate='4.5208'/> <Cube currency='RON' rate='4.5129'/>
<Cube currency='SEK' rate='9.4700'/> <Cube currency='SEK' rate='9.5548'/>
<Cube currency='CHF' rate='1.0642'/> <Cube currency='CHF' rate='1.0664'/>
<Cube currency='NOK' rate='8.8153'/> <Cube currency='NOK' rate='8.8383'/>
<Cube currency='HRK' rate='7.4480'/> <Cube currency='HRK' rate='7.4280'/>
<Cube currency='RUB' rate='60.7803'/> <Cube currency='RUB' rate='61.1026'/>
<Cube currency='TRY' rate='3.7871'/> <Cube currency='TRY' rate='3.8100'/>
<Cube currency='AUD' rate='1.3689'/> <Cube currency='AUD' rate='1.3796'/>
<Cube currency='BRL' rate='3.2422'/> <Cube currency='BRL' rate='3.2916'/>
<Cube currency='CAD' rate='1.3844'/> <Cube currency='CAD' rate='1.3889'/>
<Cube currency='CNY' rate='7.2311'/> <Cube currency='CNY' rate='7.2756'/>
<Cube currency='HKD' rate='8.1585'/> <Cube currency='HKD' rate='8.2164'/>
<Cube currency='IDR' rate='14041.37'/> <Cube currency='IDR' rate='14147.30'/>
<Cube currency='ILS' rate='3.8981'/> <Cube currency='ILS' rate='3.8890'/>
<Cube currency='INR' rate='70.4230'/> <Cube currency='INR' rate='70.6120'/>
<Cube currency='KRW' rate='1201.28'/> <Cube currency='KRW' rate='1200.05'/>
<Cube currency='MXN' rate='21.0585'/> <Cube currency='MXN' rate='20.9539'/>
<Cube currency='MYR' rate='4.6821'/> <Cube currency='MYR' rate='4.6990'/>
<Cube currency='NZD' rate='1.4672'/> <Cube currency='NZD' rate='1.4701'/>
<Cube currency='PHP' rate='52.868'/> <Cube currency='PHP' rate='53.193'/>
<Cube currency='SGD' rate='1.4905'/> <Cube currency='SGD' rate='1.4878'/>
<Cube currency='THB' rate='36.806'/> <Cube currency='THB' rate='36.901'/>
<Cube currency='ZAR' rate='13.7773'/> <Cube currency='ZAR' rate='13.7155'/>
</Cube> </Cube>
</Cube> </Cube>
</gesmes:Envelope> </gesmes:Envelope>

View File

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?><gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"><gesmes:subject>Reference rates</gesmes:subject><gesmes:Sender><gesmes:name>European Central Bank</gesmes:name></gesmes:Sender><Cube><Cube time="2017-02-22"><Cube currency="USD" rate="1.0513"/><Cube currency="JPY" rate="118.79"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4332"/><Cube currency="GBP" rate="0.8445"/><Cube currency="HUF" rate="307.53"/><Cube currency="PLN" rate="4.2987"/><Cube currency="RON" rate="4.5208"/><Cube currency="SEK" rate="9.47"/><Cube currency="CHF" rate="1.0642"/><Cube currency="NOK" rate="8.8153"/><Cube currency="HRK" rate="7.448"/><Cube currency="RUB" rate="60.7803"/><Cube currency="TRY" rate="3.7871"/><Cube currency="AUD" rate="1.3689"/><Cube currency="BRL" rate="3.2422"/><Cube currency="CAD" rate="1.3844"/><Cube currency="CNY" rate="7.2311"/><Cube currency="HKD" rate="8.1585"/><Cube currency="IDR" rate="14041.37"/><Cube currency="ILS" rate="3.8981"/><Cube currency="INR" rate="70.423"/><Cube currency="KRW" rate="1201.28"/><Cube currency="MXN" rate="21.0585"/><Cube currency="MYR" rate="4.6821"/><Cube currency="NZD" rate="1.4672"/><Cube currency="PHP" rate="52.868"/><Cube currency="SGD" rate="1.4905"/><Cube currency="THB" rate="36.806"/><Cube currency="ZAR" rate="13.7773"/></Cube> <?xml version="1.0" encoding="UTF-8"?><gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"><gesmes:subject>Reference rates</gesmes:subject><gesmes:Sender><gesmes:name>European Central Bank</gesmes:name></gesmes:Sender><Cube><Cube time="2017-02-27"><Cube currency="USD" rate="1.0587"/><Cube currency="JPY" rate="118.87"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4331"/><Cube currency="GBP" rate="0.8528"/><Cube currency="HUF" rate="307.69"/><Cube currency="PLN" rate="4.3148"/><Cube currency="RON" rate="4.5129"/><Cube currency="SEK" rate="9.5548"/><Cube currency="CHF" rate="1.0664"/><Cube currency="NOK" rate="8.8383"/><Cube currency="HRK" rate="7.428"/><Cube currency="RUB" rate="61.1026"/><Cube currency="TRY" rate="3.81"/><Cube currency="AUD" rate="1.3796"/><Cube currency="BRL" rate="3.2916"/><Cube currency="CAD" rate="1.3889"/><Cube currency="CNY" rate="7.2756"/><Cube currency="HKD" rate="8.2164"/><Cube currency="IDR" rate="14147.3"/><Cube currency="ILS" rate="3.889"/><Cube currency="INR" rate="70.612"/><Cube currency="KRW" rate="1200.05"/><Cube currency="MXN" rate="20.9539"/><Cube currency="MYR" rate="4.699"/><Cube currency="NZD" rate="1.4701"/><Cube currency="PHP" rate="53.193"/><Cube currency="SGD" rate="1.4878"/><Cube currency="THB" rate="36.901"/><Cube currency="ZAR" rate="13.7155"/></Cube>
<Cube time="2017-02-24"><Cube currency="USD" rate="1.0609"/><Cube currency="JPY" rate="119.04"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4344"/><Cube currency="GBP" rate="0.84503"/><Cube currency="HUF" rate="308.59"/><Cube currency="PLN" rate="4.3107"/><Cube currency="RON" rate="4.517"/><Cube currency="SEK" rate="9.5188"/><Cube currency="CHF" rate="1.0649"/><Cube currency="NOK" rate="8.8365"/><Cube currency="HRK" rate="7.4275"/><Cube currency="RUB" rate="61.6435"/><Cube currency="TRY" rate="3.7991"/><Cube currency="AUD" rate="1.3816"/><Cube currency="BRL" rate="3.277"/><Cube currency="CAD" rate="1.3907"/><Cube currency="CNY" rate="7.2873"/><Cube currency="HKD" rate="8.2341"/><Cube currency="IDR" rate="14128.33"/><Cube currency="ILS" rate="3.9241"/><Cube currency="INR" rate="70.6645"/><Cube currency="KRW" rate="1198.21"/><Cube currency="MXN" rate="20.8929"/><Cube currency="MYR" rate="4.7109"/><Cube currency="NZD" rate="1.4711"/><Cube currency="PHP" rate="53.255"/><Cube currency="SGD" rate="1.4892"/><Cube currency="THB" rate="37.006"/><Cube currency="ZAR" rate="13.7016"/></Cube>
<Cube time="2017-02-23"><Cube currency="USD" rate="1.0573"/><Cube currency="JPY" rate="119.3"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4335"/><Cube currency="GBP" rate="0.84628"/><Cube currency="HUF" rate="308.21"/><Cube currency="PLN" rate="4.308"/><Cube currency="RON" rate="4.52"/><Cube currency="SEK" rate="9.4975"/><Cube currency="CHF" rate="1.0663"/><Cube currency="NOK" rate="8.807"/><Cube currency="HRK" rate="7.432"/><Cube currency="RUB" rate="61.1931"/><Cube currency="TRY" rate="3.7757"/><Cube currency="AUD" rate="1.3691"/><Cube currency="BRL" rate="3.2412"/><Cube currency="CAD" rate="1.3868"/><Cube currency="CNY" rate="7.2693"/><Cube currency="HKD" rate="8.2037"/><Cube currency="IDR" rate="14091.1"/><Cube currency="ILS" rate="3.9105"/><Cube currency="INR" rate="70.5465"/><Cube currency="KRW" rate="1200.29"/><Cube currency="MXN" rate="21.015"/><Cube currency="MYR" rate="4.7039"/><Cube currency="NZD" rate="1.4637"/><Cube currency="PHP" rate="53.048"/><Cube currency="SGD" rate="1.4926"/><Cube currency="THB" rate="36.99"/><Cube currency="ZAR" rate="13.618"/></Cube>
<Cube time="2017-02-22"><Cube currency="USD" rate="1.0513"/><Cube currency="JPY" rate="118.79"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4332"/><Cube currency="GBP" rate="0.8445"/><Cube currency="HUF" rate="307.53"/><Cube currency="PLN" rate="4.2987"/><Cube currency="RON" rate="4.5208"/><Cube currency="SEK" rate="9.47"/><Cube currency="CHF" rate="1.0642"/><Cube currency="NOK" rate="8.8153"/><Cube currency="HRK" rate="7.448"/><Cube currency="RUB" rate="60.7803"/><Cube currency="TRY" rate="3.7871"/><Cube currency="AUD" rate="1.3689"/><Cube currency="BRL" rate="3.2422"/><Cube currency="CAD" rate="1.3844"/><Cube currency="CNY" rate="7.2311"/><Cube currency="HKD" rate="8.1585"/><Cube currency="IDR" rate="14041.37"/><Cube currency="ILS" rate="3.8981"/><Cube currency="INR" rate="70.423"/><Cube currency="KRW" rate="1201.28"/><Cube currency="MXN" rate="21.0585"/><Cube currency="MYR" rate="4.6821"/><Cube currency="NZD" rate="1.4672"/><Cube currency="PHP" rate="52.868"/><Cube currency="SGD" rate="1.4905"/><Cube currency="THB" rate="36.806"/><Cube currency="ZAR" rate="13.7773"/></Cube>
<Cube time="2017-02-21"><Cube currency="USD" rate="1.0537"/><Cube currency="JPY" rate="119.77"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4333"/><Cube currency="GBP" rate="0.8486"/><Cube currency="HUF" rate="306.9"/><Cube currency="PLN" rate="4.3064"/><Cube currency="RON" rate="4.5151"/><Cube currency="SEK" rate="9.469"/><Cube currency="CHF" rate="1.0639"/><Cube currency="NOK" rate="8.8138"/><Cube currency="HRK" rate="7.452"/><Cube currency="RUB" rate="60.839"/><Cube currency="TRY" rate="3.8213"/><Cube currency="AUD" rate="1.3762"/><Cube currency="BRL" rate="3.2623"/><Cube currency="CAD" rate="1.384"/><Cube currency="CNY" rate="7.2545"/><Cube currency="HKD" rate="8.1783"/><Cube currency="IDR" rate="14090.6"/><Cube currency="ILS" rate="3.9011"/><Cube currency="INR" rate="70.53"/><Cube currency="KRW" rate="1208.7"/><Cube currency="MXN" rate="21.5277"/><Cube currency="MYR" rate="4.6973"/><Cube currency="NZD" rate="1.4757"/><Cube currency="PHP" rate="52.99"/><Cube currency="SGD" rate="1.4989"/><Cube currency="THB" rate="36.916"/><Cube currency="ZAR" rate="13.8666"/></Cube> <Cube time="2017-02-21"><Cube currency="USD" rate="1.0537"/><Cube currency="JPY" rate="119.77"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4333"/><Cube currency="GBP" rate="0.8486"/><Cube currency="HUF" rate="306.9"/><Cube currency="PLN" rate="4.3064"/><Cube currency="RON" rate="4.5151"/><Cube currency="SEK" rate="9.469"/><Cube currency="CHF" rate="1.0639"/><Cube currency="NOK" rate="8.8138"/><Cube currency="HRK" rate="7.452"/><Cube currency="RUB" rate="60.839"/><Cube currency="TRY" rate="3.8213"/><Cube currency="AUD" rate="1.3762"/><Cube currency="BRL" rate="3.2623"/><Cube currency="CAD" rate="1.384"/><Cube currency="CNY" rate="7.2545"/><Cube currency="HKD" rate="8.1783"/><Cube currency="IDR" rate="14090.6"/><Cube currency="ILS" rate="3.9011"/><Cube currency="INR" rate="70.53"/><Cube currency="KRW" rate="1208.7"/><Cube currency="MXN" rate="21.5277"/><Cube currency="MYR" rate="4.6973"/><Cube currency="NZD" rate="1.4757"/><Cube currency="PHP" rate="52.99"/><Cube currency="SGD" rate="1.4989"/><Cube currency="THB" rate="36.916"/><Cube currency="ZAR" rate="13.8666"/></Cube>
<Cube time="2017-02-20"><Cube currency="USD" rate="1.0616"/><Cube currency="JPY" rate="120.11"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4333"/><Cube currency="GBP" rate="0.85145"/><Cube currency="HUF" rate="308.26"/><Cube currency="PLN" rate="4.3246"/><Cube currency="RON" rate="4.5218"/><Cube currency="SEK" rate="9.4785"/><Cube currency="CHF" rate="1.065"/><Cube currency="NOK" rate="8.8568"/><Cube currency="HRK" rate="7.4485"/><Cube currency="RUB" rate="61.6215"/><Cube currency="TRY" rate="3.8481"/><Cube currency="AUD" rate="1.3835"/><Cube currency="BRL" rate="3.2884"/><Cube currency="CAD" rate="1.3918"/><Cube currency="CNY" rate="7.3011"/><Cube currency="HKD" rate="8.2392"/><Cube currency="IDR" rate="14181.65"/><Cube currency="ILS" rate="3.9362"/><Cube currency="INR" rate="71.0625"/><Cube currency="KRW" rate="1218.35"/><Cube currency="MXN" rate="21.7273"/><Cube currency="MYR" rate="4.7335"/><Cube currency="NZD" rate="1.4772"/><Cube currency="PHP" rate="53.462"/><Cube currency="SGD" rate="1.5057"/><Cube currency="THB" rate="37.177"/><Cube currency="ZAR" rate="13.9176"/></Cube> <Cube time="2017-02-20"><Cube currency="USD" rate="1.0616"/><Cube currency="JPY" rate="120.11"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4333"/><Cube currency="GBP" rate="0.85145"/><Cube currency="HUF" rate="308.26"/><Cube currency="PLN" rate="4.3246"/><Cube currency="RON" rate="4.5218"/><Cube currency="SEK" rate="9.4785"/><Cube currency="CHF" rate="1.065"/><Cube currency="NOK" rate="8.8568"/><Cube currency="HRK" rate="7.4485"/><Cube currency="RUB" rate="61.6215"/><Cube currency="TRY" rate="3.8481"/><Cube currency="AUD" rate="1.3835"/><Cube currency="BRL" rate="3.2884"/><Cube currency="CAD" rate="1.3918"/><Cube currency="CNY" rate="7.3011"/><Cube currency="HKD" rate="8.2392"/><Cube currency="IDR" rate="14181.65"/><Cube currency="ILS" rate="3.9362"/><Cube currency="INR" rate="71.0625"/><Cube currency="KRW" rate="1218.35"/><Cube currency="MXN" rate="21.7273"/><Cube currency="MYR" rate="4.7335"/><Cube currency="NZD" rate="1.4772"/><Cube currency="PHP" rate="53.462"/><Cube currency="SGD" rate="1.5057"/><Cube currency="THB" rate="37.177"/><Cube currency="ZAR" rate="13.9176"/></Cube>
<Cube time="2017-02-17"><Cube currency="USD" rate="1.065"/><Cube currency="JPY" rate="120.08"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4334"/><Cube currency="GBP" rate="0.8572"/><Cube currency="HUF" rate="308.32"/><Cube currency="PLN" rate="4.3305"/><Cube currency="RON" rate="4.5223"/><Cube currency="SEK" rate="9.4478"/><Cube currency="CHF" rate="1.0637"/><Cube currency="NOK" rate="8.8645"/><Cube currency="HRK" rate="7.441"/><Cube currency="RUB" rate="61.9668"/><Cube currency="TRY" rate="3.9117"/><Cube currency="AUD" rate="1.3892"/><Cube currency="BRL" rate="3.2928"/><Cube currency="CAD" rate="1.3929"/><Cube currency="CNY" rate="7.3134"/><Cube currency="HKD" rate="8.2659"/><Cube currency="IDR" rate="14199.11"/><Cube currency="ILS" rate="3.947"/><Cube currency="INR" rate="71.4615"/><Cube currency="KRW" rate="1224.76"/><Cube currency="MXN" rate="21.805"/><Cube currency="MYR" rate="4.7424"/><Cube currency="NZD" rate="1.4809"/><Cube currency="PHP" rate="53.309"/><Cube currency="SGD" rate="1.5086"/><Cube currency="THB" rate="37.27"/><Cube currency="ZAR" rate="13.9357"/></Cube> <Cube time="2017-02-17"><Cube currency="USD" rate="1.065"/><Cube currency="JPY" rate="120.08"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.021"/><Cube currency="DKK" rate="7.4334"/><Cube currency="GBP" rate="0.8572"/><Cube currency="HUF" rate="308.32"/><Cube currency="PLN" rate="4.3305"/><Cube currency="RON" rate="4.5223"/><Cube currency="SEK" rate="9.4478"/><Cube currency="CHF" rate="1.0637"/><Cube currency="NOK" rate="8.8645"/><Cube currency="HRK" rate="7.441"/><Cube currency="RUB" rate="61.9668"/><Cube currency="TRY" rate="3.9117"/><Cube currency="AUD" rate="1.3892"/><Cube currency="BRL" rate="3.2928"/><Cube currency="CAD" rate="1.3929"/><Cube currency="CNY" rate="7.3134"/><Cube currency="HKD" rate="8.2659"/><Cube currency="IDR" rate="14199.11"/><Cube currency="ILS" rate="3.947"/><Cube currency="INR" rate="71.4615"/><Cube currency="KRW" rate="1224.76"/><Cube currency="MXN" rate="21.805"/><Cube currency="MYR" rate="4.7424"/><Cube currency="NZD" rate="1.4809"/><Cube currency="PHP" rate="53.309"/><Cube currency="SGD" rate="1.5086"/><Cube currency="THB" rate="37.27"/><Cube currency="ZAR" rate="13.9357"/></Cube>
@ -57,7 +60,4 @@
<Cube time="2016-12-05"><Cube currency="USD" rate="1.0702"/><Cube currency="JPY" rate="122.32"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.057"/><Cube currency="DKK" rate="7.4396"/><Cube currency="GBP" rate="0.84168"/><Cube currency="HUF" rate="313.97"/><Cube currency="PLN" rate="4.5005"/><Cube currency="RON" rate="4.501"/><Cube currency="SEK" rate="9.8015"/><Cube currency="CHF" rate="1.0797"/><Cube currency="NOK" rate="8.984"/><Cube currency="HRK" rate="7.5356"/><Cube currency="RUB" rate="68.1175"/><Cube currency="TRY" rate="3.7794"/><Cube currency="AUD" rate="1.4391"/><Cube currency="BRL" rate="3.7044"/><Cube currency="CAD" rate="1.424"/><Cube currency="CNY" rate="7.3662"/><Cube currency="HKD" rate="8.2997"/><Cube currency="IDR" rate="14375.46"/><Cube currency="ILS" rate="4.0954"/><Cube currency="INR" rate="72.9495"/><Cube currency="KRW" rate="1254.48"/><Cube currency="MXN" rate="22.0853"/><Cube currency="MYR" rate="4.7608"/><Cube currency="NZD" rate="1.5105"/><Cube currency="PHP" rate="53.188"/><Cube currency="SGD" rate="1.523"/><Cube currency="THB" rate="38.147"/><Cube currency="ZAR" rate="14.8125"/></Cube> <Cube time="2016-12-05"><Cube currency="USD" rate="1.0702"/><Cube currency="JPY" rate="122.32"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.057"/><Cube currency="DKK" rate="7.4396"/><Cube currency="GBP" rate="0.84168"/><Cube currency="HUF" rate="313.97"/><Cube currency="PLN" rate="4.5005"/><Cube currency="RON" rate="4.501"/><Cube currency="SEK" rate="9.8015"/><Cube currency="CHF" rate="1.0797"/><Cube currency="NOK" rate="8.984"/><Cube currency="HRK" rate="7.5356"/><Cube currency="RUB" rate="68.1175"/><Cube currency="TRY" rate="3.7794"/><Cube currency="AUD" rate="1.4391"/><Cube currency="BRL" rate="3.7044"/><Cube currency="CAD" rate="1.424"/><Cube currency="CNY" rate="7.3662"/><Cube currency="HKD" rate="8.2997"/><Cube currency="IDR" rate="14375.46"/><Cube currency="ILS" rate="4.0954"/><Cube currency="INR" rate="72.9495"/><Cube currency="KRW" rate="1254.48"/><Cube currency="MXN" rate="22.0853"/><Cube currency="MYR" rate="4.7608"/><Cube currency="NZD" rate="1.5105"/><Cube currency="PHP" rate="53.188"/><Cube currency="SGD" rate="1.523"/><Cube currency="THB" rate="38.147"/><Cube currency="ZAR" rate="14.8125"/></Cube>
<Cube time="2016-12-02"><Cube currency="USD" rate="1.0642"/><Cube currency="JPY" rate="121.2"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.058"/><Cube currency="DKK" rate="7.4398"/><Cube currency="GBP" rate="0.84303"/><Cube currency="HUF" rate="313.93"/><Cube currency="PLN" rate="4.4892"/><Cube currency="RON" rate="4.5095"/><Cube currency="SEK" rate="9.7983"/><Cube currency="CHF" rate="1.0751"/><Cube currency="NOK" rate="8.986"/><Cube currency="HRK" rate="7.5445"/><Cube currency="RUB" rate="68.257"/><Cube currency="TRY" rate="3.7747"/><Cube currency="AUD" rate="1.4333"/><Cube currency="BRL" rate="3.6909"/><Cube currency="CAD" rate="1.4157"/><Cube currency="CNY" rate="7.331"/><Cube currency="HKD" rate="8.2534"/><Cube currency="IDR" rate="14388.31"/><Cube currency="ILS" rate="4.0772"/><Cube currency="INR" rate="72.638"/><Cube currency="KRW" rate="1247.36"/><Cube currency="MXN" rate="22.1158"/><Cube currency="MYR" rate="4.7384"/><Cube currency="NZD" rate="1.499"/><Cube currency="PHP" rate="52.858"/><Cube currency="SGD" rate="1.514"/><Cube currency="THB" rate="37.907"/><Cube currency="ZAR" rate="14.9853"/></Cube> <Cube time="2016-12-02"><Cube currency="USD" rate="1.0642"/><Cube currency="JPY" rate="121.2"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.058"/><Cube currency="DKK" rate="7.4398"/><Cube currency="GBP" rate="0.84303"/><Cube currency="HUF" rate="313.93"/><Cube currency="PLN" rate="4.4892"/><Cube currency="RON" rate="4.5095"/><Cube currency="SEK" rate="9.7983"/><Cube currency="CHF" rate="1.0751"/><Cube currency="NOK" rate="8.986"/><Cube currency="HRK" rate="7.5445"/><Cube currency="RUB" rate="68.257"/><Cube currency="TRY" rate="3.7747"/><Cube currency="AUD" rate="1.4333"/><Cube currency="BRL" rate="3.6909"/><Cube currency="CAD" rate="1.4157"/><Cube currency="CNY" rate="7.331"/><Cube currency="HKD" rate="8.2534"/><Cube currency="IDR" rate="14388.31"/><Cube currency="ILS" rate="4.0772"/><Cube currency="INR" rate="72.638"/><Cube currency="KRW" rate="1247.36"/><Cube currency="MXN" rate="22.1158"/><Cube currency="MYR" rate="4.7384"/><Cube currency="NZD" rate="1.499"/><Cube currency="PHP" rate="52.858"/><Cube currency="SGD" rate="1.514"/><Cube currency="THB" rate="37.907"/><Cube currency="ZAR" rate="14.9853"/></Cube>
<Cube time="2016-12-01"><Cube currency="USD" rate="1.0627"/><Cube currency="JPY" rate="121.39"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.061"/><Cube currency="DKK" rate="7.4401"/><Cube currency="GBP" rate="0.84098"/><Cube currency="HUF" rate="313.96"/><Cube currency="PLN" rate="4.4676"/><Cube currency="RON" rate="4.5042"/><Cube currency="SEK" rate="9.7935"/><Cube currency="CHF" rate="1.0764"/><Cube currency="NOK" rate="8.9628"/><Cube currency="HRK" rate="7.545"/><Cube currency="RUB" rate="67.77"/><Cube currency="TRY" rate="3.7032"/><Cube currency="AUD" rate="1.4378"/><Cube currency="BRL" rate="3.6597"/><Cube currency="CAD" rate="1.424"/><Cube currency="CNY" rate="7.3176"/><Cube currency="HKD" rate="8.2422"/><Cube currency="IDR" rate="14394.27"/><Cube currency="ILS" rate="4.0736"/><Cube currency="INR" rate="72.637"/><Cube currency="KRW" rate="1241.64"/><Cube currency="MXN" rate="21.9342"/><Cube currency="MYR" rate="4.7434"/><Cube currency="NZD" rate="1.5008"/><Cube currency="PHP" rate="52.833"/><Cube currency="SGD" rate="1.5175"/><Cube currency="THB" rate="37.901"/><Cube currency="ZAR" rate="14.9575"/></Cube> <Cube time="2016-12-01"><Cube currency="USD" rate="1.0627"/><Cube currency="JPY" rate="121.39"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.061"/><Cube currency="DKK" rate="7.4401"/><Cube currency="GBP" rate="0.84098"/><Cube currency="HUF" rate="313.96"/><Cube currency="PLN" rate="4.4676"/><Cube currency="RON" rate="4.5042"/><Cube currency="SEK" rate="9.7935"/><Cube currency="CHF" rate="1.0764"/><Cube currency="NOK" rate="8.9628"/><Cube currency="HRK" rate="7.545"/><Cube currency="RUB" rate="67.77"/><Cube currency="TRY" rate="3.7032"/><Cube currency="AUD" rate="1.4378"/><Cube currency="BRL" rate="3.6597"/><Cube currency="CAD" rate="1.424"/><Cube currency="CNY" rate="7.3176"/><Cube currency="HKD" rate="8.2422"/><Cube currency="IDR" rate="14394.27"/><Cube currency="ILS" rate="4.0736"/><Cube currency="INR" rate="72.637"/><Cube currency="KRW" rate="1241.64"/><Cube currency="MXN" rate="21.9342"/><Cube currency="MYR" rate="4.7434"/><Cube currency="NZD" rate="1.5008"/><Cube currency="PHP" rate="52.833"/><Cube currency="SGD" rate="1.5175"/><Cube currency="THB" rate="37.901"/><Cube currency="ZAR" rate="14.9575"/></Cube>
<Cube time="2016-11-30"><Cube currency="USD" rate="1.0635"/><Cube currency="JPY" rate="120.48"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.06"/><Cube currency="DKK" rate="7.4403"/><Cube currency="GBP" rate="0.8525"/><Cube currency="HUF" rate="311.51"/><Cube currency="PLN" rate="4.4483"/><Cube currency="RON" rate="4.504"/><Cube currency="SEK" rate="9.7538"/><Cube currency="CHF" rate="1.0803"/><Cube currency="NOK" rate="9.019"/><Cube currency="HRK" rate="7.5378"/><Cube currency="RUB" rate="68.4209"/><Cube currency="TRY" rate="3.6372"/><Cube currency="AUD" rate="1.4291"/><Cube currency="BRL" rate="3.6118"/><Cube currency="CAD" rate="1.4233"/><Cube currency="CNY" rate="7.3205"/><Cube currency="HKD" rate="8.2489"/><Cube currency="IDR" rate="14413.08"/><Cube currency="ILS" rate="4.085"/><Cube currency="INR" rate="72.859"/><Cube currency="KRW" rate="1247.37"/><Cube currency="MXN" rate="21.8775"/><Cube currency="MYR" rate="4.7496"/><Cube currency="NZD" rate="1.4911"/><Cube currency="PHP" rate="52.913"/><Cube currency="SGD" rate="1.5179"/><Cube currency="THB" rate="37.919"/><Cube currency="ZAR" rate="14.8895"/></Cube> <Cube time="2016-11-30"><Cube currency="USD" rate="1.0635"/><Cube currency="JPY" rate="120.48"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.06"/><Cube currency="DKK" rate="7.4403"/><Cube currency="GBP" rate="0.8525"/><Cube currency="HUF" rate="311.51"/><Cube currency="PLN" rate="4.4483"/><Cube currency="RON" rate="4.504"/><Cube currency="SEK" rate="9.7538"/><Cube currency="CHF" rate="1.0803"/><Cube currency="NOK" rate="9.019"/><Cube currency="HRK" rate="7.5378"/><Cube currency="RUB" rate="68.4209"/><Cube currency="TRY" rate="3.6372"/><Cube currency="AUD" rate="1.4291"/><Cube currency="BRL" rate="3.6118"/><Cube currency="CAD" rate="1.4233"/><Cube currency="CNY" rate="7.3205"/><Cube currency="HKD" rate="8.2489"/><Cube currency="IDR" rate="14413.08"/><Cube currency="ILS" rate="4.085"/><Cube currency="INR" rate="72.859"/><Cube currency="KRW" rate="1247.37"/><Cube currency="MXN" rate="21.8775"/><Cube currency="MYR" rate="4.7496"/><Cube currency="NZD" rate="1.4911"/><Cube currency="PHP" rate="52.913"/><Cube currency="SGD" rate="1.5179"/><Cube currency="THB" rate="37.919"/><Cube currency="ZAR" rate="14.8895"/></Cube></Cube></gesmes:Envelope>
<Cube time="2016-11-29"><Cube currency="USD" rate="1.0576"/><Cube currency="JPY" rate="119.48"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.045"/><Cube currency="DKK" rate="7.4391"/><Cube currency="GBP" rate="0.84815"/><Cube currency="HUF" rate="311.48"/><Cube currency="PLN" rate="4.4299"/><Cube currency="RON" rate="4.5172"/><Cube currency="SEK" rate="9.7668"/><Cube currency="CHF" rate="1.0752"/><Cube currency="NOK" rate="9.0765"/><Cube currency="HRK" rate="7.5368"/><Cube currency="RUB" rate="69.0453"/><Cube currency="TRY" rate="3.6267"/><Cube currency="AUD" rate="1.421"/><Cube currency="BRL" rate="3.6009"/><Cube currency="CAD" rate="1.4232"/><Cube currency="CNY" rate="7.2972"/><Cube currency="HKD" rate="8.2024"/><Cube currency="IDR" rate="14354.28"/><Cube currency="ILS" rate="4.068"/><Cube currency="INR" rate="72.6565"/><Cube currency="KRW" rate="1241.38"/><Cube currency="MXN" rate="21.8756"/><Cube currency="MYR" rate="4.7232"/><Cube currency="NZD" rate="1.4912"/><Cube currency="PHP" rate="52.664"/><Cube currency="SGD" rate="1.5113"/><Cube currency="THB" rate="37.756"/><Cube currency="ZAR" rate="14.7958"/></Cube>
<Cube time="2016-11-28"><Cube currency="USD" rate="1.0588"/><Cube currency="JPY" rate="119.25"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.044"/><Cube currency="DKK" rate="7.4389"/><Cube currency="GBP" rate="0.85303"/><Cube currency="HUF" rate="310.65"/><Cube currency="PLN" rate="4.4194"/><Cube currency="RON" rate="4.515"/><Cube currency="SEK" rate="9.7798"/><Cube currency="CHF" rate="1.0751"/><Cube currency="NOK" rate="9.0848"/><Cube currency="HRK" rate="7.5368"/><Cube currency="RUB" rate="68.8075"/><Cube currency="TRY" rate="3.6282"/><Cube currency="AUD" rate="1.4194"/><Cube currency="BRL" rate="3.5909"/><Cube currency="CAD" rate="1.4242"/><Cube currency="CNY" rate="7.315"/><Cube currency="HKD" rate="8.2117"/><Cube currency="IDR" rate="14325.56"/><Cube currency="ILS" rate="4.0829"/><Cube currency="INR" rate="72.761"/><Cube currency="KRW" rate="1243.58"/><Cube currency="MXN" rate="21.757"/><Cube currency="MYR" rate="4.7249"/><Cube currency="NZD" rate="1.4991"/><Cube currency="PHP" rate="52.785"/><Cube currency="SGD" rate="1.5114"/><Cube currency="THB" rate="37.662"/><Cube currency="ZAR" rate="14.7014"/></Cube>
<Cube time="2016-11-25"><Cube currency="USD" rate="1.0592"/><Cube currency="JPY" rate="119.73"/><Cube currency="BGN" rate="1.9558"/><Cube currency="CZK" rate="27.039"/><Cube currency="DKK" rate="7.438"/><Cube currency="GBP" rate="0.85182"/><Cube currency="HUF" rate="309.33"/><Cube currency="PLN" rate="4.419"/><Cube currency="RON" rate="4.514"/><Cube currency="SEK" rate="9.784"/><Cube currency="CHF" rate="1.0736"/><Cube currency="NOK" rate="9.069"/><Cube currency="HRK" rate="7.5318"/><Cube currency="RUB" rate="68.4111"/><Cube currency="TRY" rate="3.6523"/><Cube currency="AUD" rate="1.423"/><Cube currency="BRL" rate="3.6394"/><Cube currency="CAD" rate="1.429"/><Cube currency="CNY" rate="7.3295"/><Cube currency="HKD" rate="8.2153"/><Cube currency="IDR" rate="14317.74"/><Cube currency="ILS" rate="4.1047"/><Cube currency="INR" rate="72.5925"/><Cube currency="KRW" rate="1247.03"/><Cube currency="MXN" rate="21.8727"/><Cube currency="MYR" rate="4.7203"/><Cube currency="NZD" rate="1.504"/><Cube currency="PHP" rate="52.801"/><Cube currency="SGD" rate="1.5132"/><Cube currency="THB" rate="37.76"/><Cube currency="ZAR" rate="14.9718"/></Cube></Cube></gesmes:Envelope>

View File

@ -2,113 +2,113 @@ SDRs per Currency unit and Currency units per SDR (1)
last five days last five days
SDRs per Currency unit (2) SDRs per Currency unit (2)
Currency February 22, 2017 February 21, 2017 February 17, 2017 February 16, 2017 February 15, 2017 Currency February 27, 2017 February 24, 2017 February 23, 2017 February 22, 2017 February 21, 2017
Chinese Yuan 0.1077740000 0.1075920000 0.1074250000 0.1075990000 0.1078580000 Chinese Yuan 0.1075530000 0.1074200000 0.1076250000 0.1077740000 0.1075920000
Euro 0.7806080000 0.7860480000 0.7864600000 0.7819020000 Euro 0.7826360000 0.7829640000 0.7824120000 0.7793410000 0.7806080000
Japanese Yen 0.0065267800 0.0065271000 0.0065062900 0.0064850300 0.0064793800 Japanese Yen 0.0065915500 0.0065398200 0.0065279600 0.0065267800 0.0065271000
U.K. Pound Sterling 0.9217470000 0.9201430000 0.9163910000 0.9224580000 0.9204290000 U.K. Pound Sterling 0.9178430000 0.9263250000 0.9233090000 0.9217470000 0.9201430000
U.S. Dollar 0.7413120000 0.7408260000 0.7380730000 0.7383210000 0.7407880000 U.S. Dollar 0.7392420000 0.7380190000 0.7400090000 0.7413120000 0.7408260000
Algerian Dinar 0.0067122300 0.0067137500 0.0067192300 0.0067098500 Algerian Dinar 0.0067056800 0.0067170500 0.0067108200 0.0067122300
Australian Dollar 0.5680650000 0.5689800000 0.5694670000 0.5682580000 Australian Dollar 0.5695290000 0.5688450000 0.5701430000 0.5680650000
Bahrain Dinar 1.9702800000 1.9629600000 1.9636200000 1.9701800000 Bahrain Dinar 1.9628200000 1.9681100000 1.9715700000 1.9702800000
Botswana Pula 0.0708970000 0.0709288000 0.0712480000 0.0711156000 Botswana Pula 0.0712926000 0.0714849000 0.0710918000 0.0708970000
Brazilian Real 0.2396560000 0.2419590000 0.2399250000 0.2389790000 Brazilian Real 0.2409310000 0.2401220000 0.2394110000 0.2396560000
Brunei Dollar 0.5214510000 0.5207230000 0.5201640000 0.5219390000 Brunei Dollar 0.5253930000 0.5230480000 0.5224920000 0.5214510000
Canadian Dollar 0.5634090000 0.5627270000 0.5661790000 Canadian Dollar 0.5632010000 0.5645050000 0.5621540000 0.5634090000
Chilean Peso 0.0011535600 0.0011562200 0.0011537500 Chilean Peso 0.0011525100 0.0011535400 0.0011517700 0.0011535600
Colombian Peso 0.0002552100 0.0002566600 0.0002567150 0.0002583270 Colombian Peso 0.0002570000 0.0002557440 0.0002553890 0.0002552100
Czech Koruna 0.0288889000 0.0290901000 0.0291136000 Czech Koruna 0.0289783000 0.0289564000 0.0288448000 0.0288889000
Danish Krone 0.1050150000 0.1057460000 0.1057900000 0.1051720000 Danish Krone 0.1053170000 0.1052550000 0.1048460000 0.1050150000
Hungarian Forint 0.0025387300 0.0025516800 0.0025498900 0.0025358200 Hungarian Forint 0.0025337100 0.0025343600 0.0025357900 0.0025387300
Icelandic Krona 0.0066885700 0.0066860500 0.0066725800 0.0066218600 Icelandic Krona 0.0068082900 0.0067593100 0.0067227000 0.0066885700
Indian Rupee 0.0110083000 0.0110285000 0.0110699000 Indian Rupee 0.0110722000 0.0110702000
Indonesian Rupiah 0.0000554096 0.0000553776 0.0000553921 Indonesian Rupiah 0.0000553404 0.0000553899 0.0000555040 0.0000554096
Iranian Rial 0.0000228671 0.0000227947 0.0000228695 Iranian Rial 0.0000228786 0.0000228671
Israeli New Sheqel 0.1998450000 0.1986200000 0.1986870000 0.1977020000 Israeli New Sheqel 0.1995720000 0.1995710000 0.1998150000 0.1998450000
Kazakhstani Tenge 0.0023350800 0.0023165400 0.0023114400 0.0023099100 Kazakhstani Tenge 0.0023693200 0.0023668900 0.0023601900 0.0023350800
Korean Won 0.0006455440 0.0006480580 0.0006467420 0.0006472590 Korean Won 0.0006480670 0.0006486190 0.0006464180 0.0006455440
Kuwaiti Dinar 2.4257600000 2.4171400000 2.4179500000 2.4248400000 Kuwaiti Dinar 2.4165700000 2.4230800000 2.4273500000 2.4257600000
Libyan Dinar 0.5174910000 0.5174910000 0.5174910000 0.5174910000 Libyan Dinar 0.5174910000 0.5174910000 0.5174910000 0.5174910000
Malaysian Ringgit 0.1661230000 0.1655610000 0.1656540000 0.1664690000 Malaysian Ringgit 0.1659960000 0.1662940000 0.1663250000 0.1661230000
Mauritian Rupee 0.0207521000 0.0207775000 0.0208634000 Mauritian Rupee 0.0208418000
Mexican Peso 0.0360870000 0.0364464000 Mexican Peso 0.0372107000 0.0375618000 0.0372281000 0.0362282000
Nepalese Rupee 0.0069139200 0.0068914400 0.0068937500 0.0069148500 Nepalese Rupee 0.0069012400 0.0069030700 0.0069229700 0.0069139200
New Zealand Dollar 0.5306540000 0.5322980000 0.5342490000 0.5300340000 New Zealand Dollar 0.5331450000 0.5322880000 0.5307790000 0.5306540000
Norwegian Krone 0.0885668000 0.0886734000 0.0886755000 0.0883278000 Norwegian Krone 0.0886062000 0.0888398000 0.0884082000 0.0885668000
Rial Omani 1.9267300000 1.9195700000 1.9202100000 1.9266300000 Rial Omani 1.9194300000 1.9246000000 1.9279900000 1.9267300000
Pakistani Rupee 0.0070658600 0.0070405000 0.0070429300 0.0070671000 Pakistani Rupee 0.0070384300 0.0070575400 0.0070700400 0.0070658600
Nuevo Sol 0.2264720000 Nuevo Sol 0.2283980000 0.2287290000 0.2281570000
Philippine Peso 0.0147628000 0.0147836000 0.0148472000 Philippine Peso 0.0146922000 0.0147295000 0.0147363000 0.0147628000
Polish Zloty 0.1809450000 0.1813760000 0.1820000000 0.1817800000 Polish Zloty 0.1814160000 0.1811970000 0.1812540000 0.1809450000
Qatar Riyal 0.2035240000 0.2027670000 0.2028350000 0.2035130000 Qatar Riyal 0.2027520000 0.2032990000 0.2036570000 0.2035240000
Russian Ruble 0.0128040000 0.0128062000 0.0129188000 0.0130485000 Russian Ruble 0.0128977000 0.0128040000
Saudi Arabian Riyal 0.1975540000 0.1968190000 0.1968860000 0.1975430000 Saudi Arabian Riyal 0.1968050000 0.1973360000 0.1976830000 0.1975540000
Singapore Dollar 0.5214510000 0.5207230000 0.5201640000 0.5219390000 Singapore Dollar 0.5253930000 0.5230480000 0.5224920000 0.5214510000
South African Rand 0.0562263000 0.0562860000 0.0569367000 0.0568608000 South African Rand 0.0569347000 0.0570889000 0.0566127000 0.0562263000
Sri Lanka Rupee 0.0049020900 0.0048960700 0.0048979200 0.0049141600 Sri Lanka Rupee 0.0048931100 0.0049014800 0.0049020900
Swedish Krona 0.0824973000 0.0830639000 0.0829146000 0.0828400000 Swedish Krona 0.0822544000 0.0824642000 0.0823543000 0.0824973000
Swiss Franc 0.7337090000 0.7385900000 0.7376570000 0.7341080000 Swiss Franc 0.7345670000 0.7331180000 0.7312210000 0.7337090000
Thai Baht 0.0211393000 0.0210914000 0.0210961000 0.0211545000 Thai Baht 0.0211098000 0.0211467000 0.0211707000 0.0211393000
Trinidad And Tobago Dollar 0.1095510000 0.1093120000 0.1094000000 0.1097660000 Trinidad And Tobago Dollar 0.1092030000 0.1091300000 0.1093820000 0.1095510000
Tunisian Dinar 0.3234230000 0.3229230000 0.3212750000 0.3239130000 Tunisian Dinar 0.3206630000 0.3204540000 0.3225790000 0.3234230000
U.A.E. Dirham 0.2017230000 0.2009730000 0.2010400000 0.2017120000 U.A.E. Dirham 0.2009580000 0.2015000000 0.2018550000 0.2017230000
Peso Uruguayo 0.0260937000 0.0260969000 Peso Uruguayo 0.0259816000 0.0261108000 0.0261517000
Bolivar Fuerte 0.0740171000 0.0742645000 Bolivar Fuerte 0.0739869000 0.0741864000
Currency units per SDR(3) Currency units per SDR(3)
Currency February 22, 2017 February 21, 2017 February 17, 2017 February 16, 2017 February 15, 2017 Currency February 27, 2017 February 24, 2017 February 23, 2017 February 22, 2017 February 21, 2017
Chinese Yuan 9.278680 9.294370 9.308820 9.293770 9.271450 Chinese Yuan 9.297740 9.309250 9.291520 9.278680 9.294370
Euro 1.281050 1.272190 1.271520 1.278930 Euro 1.277730 1.277200 1.278100 1.283140 1.281050
Japanese Yen 153.215000 153.207000 153.697000 154.201000 154.336000 Japanese Yen 151.709000 152.909000 153.187000 153.215000 153.207000
U.K. Pound Sterling 1.084900 1.086790 1.091240 1.084060 1.086450 U.K. Pound Sterling 1.089510 1.079530 1.083060 1.084900 1.086790
U.S. Dollar 1.348960 1.349840 1.354880 1.354420 1.349910 U.S. Dollar 1.352740 1.354980 1.351330 1.348960 1.349840
Algerian Dinar 148.982000 148.948000 148.827000 149.035000 Algerian Dinar 149.127000 148.875000 149.013000 148.982000
Australian Dollar 1.760360 1.757530 1.756030 1.759760 Australian Dollar 1.755840 1.757950 1.753950 1.760360
Bahrain Dinar 0.507542 0.509435 0.509264 0.507568 Bahrain Dinar 0.509471 0.508102 0.507210 0.507542
Botswana Pula 14.105000 14.098600 14.035500 14.061600 Botswana Pula 14.026700 13.989000 14.066300 14.105000
Brazilian Real 4.172650 4.132930 4.167970 4.184470 Brazilian Real 4.150570 4.164550 4.176920 4.172650
Brunei Dollar 1.917730 1.920410 1.922470 1.915930 Brunei Dollar 1.903340 1.911870 1.913900 1.917730
Canadian Dollar 1.774910 1.777060 1.766230 Canadian Dollar 1.775570 1.771460 1.778870 1.774910
Chilean Peso 866.882000 864.887000 866.739000 Chilean Peso 867.671000 866.897000 868.229000 866.882000
Colombian Peso 3,918.340000 3,896.210000 3,895.370000 3,871.060000 Colombian Peso 3,891.050000 3,910.160000 3,915.600000 3,918.340000
Czech Koruna 34.615400 34.376000 34.348200 Czech Koruna 34.508600 34.534700 34.668300 34.615400
Danish Krone 9.522450 9.456620 9.452690 9.508230 Danish Krone 9.495140 9.500740 9.537800 9.522450
Hungarian Forint 393.898000 391.899000 392.174000 394.350000 Hungarian Forint 394.678000 394.577000 394.354000 393.898000
Icelandic Krona 149.509000 149.565000 149.867000 151.015000 Icelandic Krona 146.880000 147.944000 148.750000 149.509000
Indian Rupee 90.840500 90.674200 90.335100 Indian Rupee 90.316300 90.332600
Indonesian Rupiah 18,047.400000 18,057.800000 18,053.100000 Indonesian Rupiah 18,070.000000 18,053.800000 18,016.700000 18,047.400000
Iranian Rial 43,730.900000 43,869.800000 43,726.400000 Iranian Rial 43,709.000000 43,730.900000
Israeli New Sheqel 5.003880 5.034740 5.033040 5.058120 Israeli New Sheqel 5.010720 5.010750 5.004630 5.003880
Kazakhstani Tenge 428.251000 431.678000 432.631000 432.917000 Kazakhstani Tenge 422.062000 422.495000 423.695000 428.251000
Korean Won 1,549.080000 1,543.070000 1,546.210000 1,544.980000 Korean Won 1,543.050000 1,541.740000 1,546.990000 1,549.080000
Kuwaiti Dinar 0.412242 0.413712 0.413573 0.412398 Kuwaiti Dinar 0.413810 0.412698 0.411972 0.412242
Libyan Dinar 1.932400 1.932400 1.932400 1.932400 Libyan Dinar 1.932400 1.932400 1.932400 1.932400
Malaysian Ringgit 6.019640 6.040070 6.036680 6.007120 Malaysian Ringgit 6.024240 6.013450 6.012330 6.019640
Mauritian Rupee 48.187900 48.129000 47.930800 Mauritian Rupee 47.980500
Mexican Peso 27.710800 27.437600 Mexican Peso 26.874000 26.622800 26.861400 27.602800
Nepalese Rupee 144.636000 145.108000 145.059000 144.616000 Nepalese Rupee 144.901000 144.863000 144.447000 144.636000
New Zealand Dollar 1.884470 1.878650 1.871790 1.886670 New Zealand Dollar 1.875660 1.878680 1.884020 1.884470
Norwegian Krone 11.290900 11.277300 11.277100 11.321500 Norwegian Krone 11.285900 11.256200 11.311200 11.290900
Rial Omani 0.519014 0.520950 0.520776 0.519041 Rial Omani 0.520988 0.519588 0.518675 0.519014
Pakistani Rupee 141.526000 142.035000 141.986000 141.501000 Pakistani Rupee 142.077000 141.692000 141.442000 141.526000
Nuevo Sol 4.415560 Nuevo Sol 4.378320 4.371990 4.382950
Philippine Peso 67.737800 67.642500 67.352800 Philippine Peso 68.063300 67.891000 67.859600 67.737800
Polish Zloty 5.526540 5.513410 5.494510 5.501160 Polish Zloty 5.512190 5.518860 5.517120 5.526540
Qatar Riyal 4.913430 4.931770 4.930120 4.913690 Qatar Riyal 4.932130 4.918860 4.910220 4.913430
Russian Ruble 78.100600 78.087200 77.406600 76.637200 Russian Ruble 77.533200 78.100600
Saudi Arabian Riyal 5.061910 5.080810 5.079080 5.062190 Saudi Arabian Riyal 5.081170 5.067500 5.058600 5.061910
Singapore Dollar 1.917730 1.920410 1.922470 1.915930 Singapore Dollar 1.903340 1.911870 1.913900 1.917730
South African Rand 17.785300 17.766400 17.563400 17.586800 South African Rand 17.564000 17.516500 17.663900 17.785300
Sri Lanka Rupee 203.995000 204.245000 204.168000 203.494000 Sri Lanka Rupee 204.369000 204.020000 203.995000
Swedish Krona 12.121600 12.038900 12.060600 12.071500 Swedish Krona 12.157400 12.126500 12.142700 12.121600
Swiss Franc 1.362940 1.353930 1.355640 1.362200 Swiss Franc 1.361350 1.364040 1.367580 1.362940
Thai Baht 47.305300 47.412700 47.402100 47.271300 Thai Baht 47.371400 47.288700 47.235100 47.305300
Trinidad And Tobago Dollar 9.128170 9.148130 9.140770 9.110290 Trinidad And Tobago Dollar 9.157260 9.163380 9.142270 9.128170
Tunisian Dinar 3.091930 3.096710 3.112600 3.087250 Tunisian Dinar 3.118540 3.120570 3.100020 3.091930
U.A.E. Dirham 4.957290 4.975790 4.974130 4.957560 U.A.E. Dirham 4.976160 4.962780 4.954050 4.957290
Peso Uruguayo 38.323400 38.318700 Peso Uruguayo 38.488800 38.298300 38.238400
Bolivar Fuerte 13.510400 13.465400 Bolivar Fuerte 13.515900 13.479600
(1) Exchange rates are published daily except on IMF holidays or whenever the IMF is closed for business. (1) Exchange rates are published daily except on IMF holidays or whenever the IMF is closed for business.

View File

@ -2,113 +2,113 @@ SDRs per Currency unit and Currency units per SDR (1)
last five days last five days
SDRs per Currency unit (2) SDRs per Currency unit (2)
Currency February 22, 2017 February 21, 2017 February 17, 2017 February 16, 2017 February 15, 2017 Currency February 27, 2017 February 24, 2017 February 23, 2017 February 22, 2017 February 21, 2017
Chinese Yuan 0.1077740000 0.1075920000 0.1074250000 0.1075990000 0.1078580000 Chinese Yuan 0.1075530000 0.1074200000 0.1076250000 0.1077740000 0.1075920000
Euro 0.7806080000 0.7860480000 0.7864600000 0.7819020000 Euro 0.7826360000 0.7829640000 0.7824120000 0.7793410000 0.7806080000
Japanese Yen 0.0065267800 0.0065271000 0.0065062900 0.0064850300 0.0064793800 Japanese Yen 0.0065915500 0.0065398200 0.0065279600 0.0065267800 0.0065271000
U.K. Pound Sterling 0.9217470000 0.9201430000 0.9163910000 0.9224580000 0.9204290000 U.K. Pound Sterling 0.9178430000 0.9263250000 0.9233090000 0.9217470000 0.9201430000
U.S. Dollar 0.7413120000 0.7408260000 0.7380730000 0.7383210000 0.7407880000 U.S. Dollar 0.7392420000 0.7380190000 0.7400090000 0.7413120000 0.7408260000
Algerian Dinar 0.0067122300 0.0067137500 0.0067192300 0.0067098500 Algerian Dinar 0.0067056800 0.0067170500 0.0067108200 0.0067122300
Australian Dollar 0.5680650000 0.5689800000 0.5694670000 0.5682580000 Australian Dollar 0.5695290000 0.5688450000 0.5701430000 0.5680650000
Bahrain Dinar 1.9702800000 1.9629600000 1.9636200000 1.9701800000 Bahrain Dinar 1.9628200000 1.9681100000 1.9715700000 1.9702800000
Botswana Pula 0.0708970000 0.0709288000 0.0712480000 0.0711156000 Botswana Pula 0.0712926000 0.0714849000 0.0710918000 0.0708970000
Brazilian Real 0.2396560000 0.2419590000 0.2399250000 0.2389790000 Brazilian Real 0.2409310000 0.2401220000 0.2394110000 0.2396560000
Brunei Dollar 0.5214510000 0.5207230000 0.5201640000 0.5219390000 Brunei Dollar 0.5253930000 0.5230480000 0.5224920000 0.5214510000
Canadian Dollar 0.5634090000 0.5627270000 0.5661790000 Canadian Dollar 0.5632010000 0.5645050000 0.5621540000 0.5634090000
Chilean Peso 0.0011535600 0.0011562200 0.0011537500 Chilean Peso 0.0011525100 0.0011535400 0.0011517700 0.0011535600
Colombian Peso 0.0002552100 0.0002566600 0.0002567150 0.0002583270 Colombian Peso 0.0002570000 0.0002557440 0.0002553890 0.0002552100
Czech Koruna 0.0288889000 0.0290901000 0.0291136000 Czech Koruna 0.0289783000 0.0289564000 0.0288448000 0.0288889000
Danish Krone 0.1050150000 0.1057460000 0.1057900000 0.1051720000 Danish Krone 0.1053170000 0.1052550000 0.1048460000 0.1050150000
Hungarian Forint 0.0025387300 0.0025516800 0.0025498900 0.0025358200 Hungarian Forint 0.0025337100 0.0025343600 0.0025357900 0.0025387300
Icelandic Krona 0.0066885700 0.0066860500 0.0066725800 0.0066218600 Icelandic Krona 0.0068082900 0.0067593100 0.0067227000 0.0066885700
Indian Rupee 0.0110083000 0.0110285000 0.0110699000 Indian Rupee 0.0110722000 0.0110702000
Indonesian Rupiah 0.0000554096 0.0000553776 0.0000553921 Indonesian Rupiah 0.0000553404 0.0000553899 0.0000555040 0.0000554096
Iranian Rial 0.0000228671 0.0000227947 0.0000228695 Iranian Rial 0.0000228786 0.0000228671
Israeli New Sheqel 0.1998450000 0.1986200000 0.1986870000 0.1977020000 Israeli New Sheqel 0.1995720000 0.1995710000 0.1998150000 0.1998450000
Kazakhstani Tenge 0.0023350800 0.0023165400 0.0023114400 0.0023099100 Kazakhstani Tenge 0.0023693200 0.0023668900 0.0023601900 0.0023350800
Korean Won 0.0006455440 0.0006480580 0.0006467420 0.0006472590 Korean Won 0.0006480670 0.0006486190 0.0006464180 0.0006455440
Kuwaiti Dinar 2.4257600000 2.4171400000 2.4179500000 2.4248400000 Kuwaiti Dinar 2.4165700000 2.4230800000 2.4273500000 2.4257600000
Libyan Dinar 0.5174910000 0.5174910000 0.5174910000 0.5174910000 Libyan Dinar 0.5174910000 0.5174910000 0.5174910000 0.5174910000
Malaysian Ringgit 0.1661230000 0.1655610000 0.1656540000 0.1664690000 Malaysian Ringgit 0.1659960000 0.1662940000 0.1663250000 0.1661230000
Mauritian Rupee 0.0207521000 0.0207775000 0.0208634000 Mauritian Rupee 0.0208418000
Mexican Peso 0.0360870000 0.0364464000 Mexican Peso 0.0372107000 0.0375618000 0.0372281000 0.0362282000
Nepalese Rupee 0.0069139200 0.0068914400 0.0068937500 0.0069148500 Nepalese Rupee 0.0069012400 0.0069030700 0.0069229700 0.0069139200
New Zealand Dollar 0.5306540000 0.5322980000 0.5342490000 0.5300340000 New Zealand Dollar 0.5331450000 0.5322880000 0.5307790000 0.5306540000
Norwegian Krone 0.0885668000 0.0886734000 0.0886755000 0.0883278000 Norwegian Krone 0.0886062000 0.0888398000 0.0884082000 0.0885668000
Rial Omani 1.9267300000 1.9195700000 1.9202100000 1.9266300000 Rial Omani 1.9194300000 1.9246000000 1.9279900000 1.9267300000
Pakistani Rupee 0.0070658600 0.0070405000 0.0070429300 0.0070671000 Pakistani Rupee 0.0070384300 0.0070575400 0.0070700400 0.0070658600
Nuevo Sol 0.2264720000 Nuevo Sol 0.2283980000 0.2287290000 0.2281570000
Philippine Peso 0.0147628000 0.0147836000 0.0148472000 Philippine Peso 0.0146922000 0.0147295000 0.0147363000 0.0147628000
Polish Zloty 0.1809450000 0.1813760000 0.1820000000 0.1817800000 Polish Zloty 0.1814160000 0.1811970000 0.1812540000 0.1809450000
Qatar Riyal 0.2035240000 0.2027670000 0.2028350000 0.2035130000 Qatar Riyal 0.2027520000 0.2032990000 0.2036570000 0.2035240000
Russian Ruble 0.0128040000 0.0128062000 0.0129188000 0.0130485000 Russian Ruble 0.0128977000 0.0128040000
Saudi Arabian Riyal 0.1975540000 0.1968190000 0.1968860000 0.1975430000 Saudi Arabian Riyal 0.1968050000 0.1973360000 0.1976830000 0.1975540000
Singapore Dollar 0.5214510000 0.5207230000 0.5201640000 0.5219390000 Singapore Dollar 0.5253930000 0.5230480000 0.5224920000 0.5214510000
South African Rand 0.0562263000 0.0562860000 0.0569367000 0.0568608000 South African Rand 0.0569347000 0.0570889000 0.0566127000 0.0562263000
Sri Lanka Rupee 0.0049020900 0.0048960700 0.0048979200 0.0049141600 Sri Lanka Rupee 0.0048931100 0.0049014800 0.0049020900
Swedish Krona 0.0824973000 0.0830639000 0.0829146000 0.0828400000 Swedish Krona 0.0822544000 0.0824642000 0.0823543000 0.0824973000
Swiss Franc 0.7337090000 0.7385900000 0.7376570000 0.7341080000 Swiss Franc 0.7345670000 0.7331180000 0.7312210000 0.7337090000
Thai Baht 0.0211393000 0.0210914000 0.0210961000 0.0211545000 Thai Baht 0.0211098000 0.0211467000 0.0211707000 0.0211393000
Trinidad And Tobago Dollar 0.1095510000 0.1093120000 0.1094000000 0.1097660000 Trinidad And Tobago Dollar 0.1092030000 0.1091300000 0.1093820000 0.1095510000
Tunisian Dinar 0.3234230000 0.3229230000 0.3212750000 0.3239130000 Tunisian Dinar 0.3206630000 0.3204540000 0.3225790000 0.3234230000
U.A.E. Dirham 0.2017230000 0.2009730000 0.2010400000 0.2017120000 U.A.E. Dirham 0.2009580000 0.2015000000 0.2018550000 0.2017230000
Peso Uruguayo 0.0260937000 0.0260969000 Peso Uruguayo 0.0259816000 0.0261108000 0.0261517000
Bolivar Fuerte 0.0740171000 0.0742645000 Bolivar Fuerte 0.0739869000 0.0741864000
Currency units per SDR(3) Currency units per SDR(3)
Currency February 22, 2017 February 21, 2017 February 17, 2017 February 16, 2017 February 15, 2017 Currency February 27, 2017 February 24, 2017 February 23, 2017 February 22, 2017 February 21, 2017
Chinese Yuan 9.278680 9.294370 9.308820 9.293770 9.271450 Chinese Yuan 9.297740 9.309250 9.291520 9.278680 9.294370
Euro 1.281050 1.272190 1.271520 1.278930 Euro 1.277730 1.277200 1.278100 1.283140 1.281050
Japanese Yen 153.215000 153.207000 153.697000 154.201000 154.336000 Japanese Yen 151.709000 152.909000 153.187000 153.215000 153.207000
U.K. Pound Sterling 1.084900 1.086790 1.091240 1.084060 1.086450 U.K. Pound Sterling 1.089510 1.079530 1.083060 1.084900 1.086790
U.S. Dollar 1.348960 1.349840 1.354880 1.354420 1.349910 U.S. Dollar 1.352740 1.354980 1.351330 1.348960 1.349840
Algerian Dinar 148.982000 148.948000 148.827000 149.035000 Algerian Dinar 149.127000 148.875000 149.013000 148.982000
Australian Dollar 1.760360 1.757530 1.756030 1.759760 Australian Dollar 1.755840 1.757950 1.753950 1.760360
Bahrain Dinar 0.507542 0.509435 0.509264 0.507568 Bahrain Dinar 0.509471 0.508102 0.507210 0.507542
Botswana Pula 14.105000 14.098600 14.035500 14.061600 Botswana Pula 14.026700 13.989000 14.066300 14.105000
Brazilian Real 4.172650 4.132930 4.167970 4.184470 Brazilian Real 4.150570 4.164550 4.176920 4.172650
Brunei Dollar 1.917730 1.920410 1.922470 1.915930 Brunei Dollar 1.903340 1.911870 1.913900 1.917730
Canadian Dollar 1.774910 1.777060 1.766230 Canadian Dollar 1.775570 1.771460 1.778870 1.774910
Chilean Peso 866.882000 864.887000 866.739000 Chilean Peso 867.671000 866.897000 868.229000 866.882000
Colombian Peso 3,918.340000 3,896.210000 3,895.370000 3,871.060000 Colombian Peso 3,891.050000 3,910.160000 3,915.600000 3,918.340000
Czech Koruna 34.615400 34.376000 34.348200 Czech Koruna 34.508600 34.534700 34.668300 34.615400
Danish Krone 9.522450 9.456620 9.452690 9.508230 Danish Krone 9.495140 9.500740 9.537800 9.522450
Hungarian Forint 393.898000 391.899000 392.174000 394.350000 Hungarian Forint 394.678000 394.577000 394.354000 393.898000
Icelandic Krona 149.509000 149.565000 149.867000 151.015000 Icelandic Krona 146.880000 147.944000 148.750000 149.509000
Indian Rupee 90.840500 90.674200 90.335100 Indian Rupee 90.316300 90.332600
Indonesian Rupiah 18,047.400000 18,057.800000 18,053.100000 Indonesian Rupiah 18,070.000000 18,053.800000 18,016.700000 18,047.400000
Iranian Rial 43,730.900000 43,869.800000 43,726.400000 Iranian Rial 43,709.000000 43,730.900000
Israeli New Sheqel 5.003880 5.034740 5.033040 5.058120 Israeli New Sheqel 5.010720 5.010750 5.004630 5.003880
Kazakhstani Tenge 428.251000 431.678000 432.631000 432.917000 Kazakhstani Tenge 422.062000 422.495000 423.695000 428.251000
Korean Won 1,549.080000 1,543.070000 1,546.210000 1,544.980000 Korean Won 1,543.050000 1,541.740000 1,546.990000 1,549.080000
Kuwaiti Dinar 0.412242 0.413712 0.413573 0.412398 Kuwaiti Dinar 0.413810 0.412698 0.411972 0.412242
Libyan Dinar 1.932400 1.932400 1.932400 1.932400 Libyan Dinar 1.932400 1.932400 1.932400 1.932400
Malaysian Ringgit 6.019640 6.040070 6.036680 6.007120 Malaysian Ringgit 6.024240 6.013450 6.012330 6.019640
Mauritian Rupee 48.187900 48.129000 47.930800 Mauritian Rupee 47.980500
Mexican Peso 27.710800 27.437600 Mexican Peso 26.874000 26.622800 26.861400 27.602800
Nepalese Rupee 144.636000 145.108000 145.059000 144.616000 Nepalese Rupee 144.901000 144.863000 144.447000 144.636000
New Zealand Dollar 1.884470 1.878650 1.871790 1.886670 New Zealand Dollar 1.875660 1.878680 1.884020 1.884470
Norwegian Krone 11.290900 11.277300 11.277100 11.321500 Norwegian Krone 11.285900 11.256200 11.311200 11.290900
Rial Omani 0.519014 0.520950 0.520776 0.519041 Rial Omani 0.520988 0.519588 0.518675 0.519014
Pakistani Rupee 141.526000 142.035000 141.986000 141.501000 Pakistani Rupee 142.077000 141.692000 141.442000 141.526000
Nuevo Sol 4.415560 Nuevo Sol 4.378320 4.371990 4.382950
Philippine Peso 67.737800 67.642500 67.352800 Philippine Peso 68.063300 67.891000 67.859600 67.737800
Polish Zloty 5.526540 5.513410 5.494510 5.501160 Polish Zloty 5.512190 5.518860 5.517120 5.526540
Qatar Riyal 4.913430 4.931770 4.930120 4.913690 Qatar Riyal 4.932130 4.918860 4.910220 4.913430
Russian Ruble 78.100600 78.087200 77.406600 76.637200 Russian Ruble 77.533200 78.100600
Saudi Arabian Riyal 5.061910 5.080810 5.079080 5.062190 Saudi Arabian Riyal 5.081170 5.067500 5.058600 5.061910
Singapore Dollar 1.917730 1.920410 1.922470 1.915930 Singapore Dollar 1.903340 1.911870 1.913900 1.917730
South African Rand 17.785300 17.766400 17.563400 17.586800 South African Rand 17.564000 17.516500 17.663900 17.785300
Sri Lanka Rupee 203.995000 204.245000 204.168000 203.494000 Sri Lanka Rupee 204.369000 204.020000 203.995000
Swedish Krona 12.121600 12.038900 12.060600 12.071500 Swedish Krona 12.157400 12.126500 12.142700 12.121600
Swiss Franc 1.362940 1.353930 1.355640 1.362200 Swiss Franc 1.361350 1.364040 1.367580 1.362940
Thai Baht 47.305300 47.412700 47.402100 47.271300 Thai Baht 47.371400 47.288700 47.235100 47.305300
Trinidad And Tobago Dollar 9.128170 9.148130 9.140770 9.110290 Trinidad And Tobago Dollar 9.157260 9.163380 9.142270 9.128170
Tunisian Dinar 3.091930 3.096710 3.112600 3.087250 Tunisian Dinar 3.118540 3.120570 3.100020 3.091930
U.A.E. Dirham 4.957290 4.975790 4.974130 4.957560 U.A.E. Dirham 4.976160 4.962780 4.954050 4.957290
Peso Uruguayo 38.323400 38.318700 Peso Uruguayo 38.488800 38.298300 38.238400
Bolivar Fuerte 13.510400 13.465400 Bolivar Fuerte 13.515900 13.479600
(1) Exchange rates are published daily except on IMF holidays or whenever the IMF is closed for business. (1) Exchange rates are published daily except on IMF holidays or whenever the IMF is closed for business.

View File

@ -81,7 +81,11 @@ public class JavaMoney {
LOGGER.info("Money & FastMoney operations : " + calcMoneyFastMoney); LOGGER.info("Money & FastMoney operations : " + calcMoneyFastMoney);
monetaryAmounts = new MonetaryAmount[] { Money.of(100, "CHF"), Money.of(10.20, "CHF"), Money.of(1.15, "CHF"), }; monetaryAmounts =
new MonetaryAmount[] {
Money.of(100, "CHF"),
Money.of(10.20, "CHF"),
Money.of(1.15, "CHF"), };
sumAmtCHF = Money.of(0, "CHF"); sumAmtCHF = Money.of(0, "CHF");
for (MonetaryAmount monetaryAmount : monetaryAmounts) { for (MonetaryAmount monetaryAmount : monetaryAmounts) {
sumAmtCHF = sumAmtCHF.add(monetaryAmount); sumAmtCHF = sumAmtCHF.add(monetaryAmount);
@ -134,7 +138,7 @@ public class JavaMoney {
usFormatted = formatUSD.format(oneDolar); usFormatted = formatUSD.format(oneDolar);
LOGGER.info("One dolar standard formatted : " + usFormatted); LOGGER.info("One dolar standard formatted : " + usFormatted);
customFormat = MonetaryFormats.getAmountFormat(AmountFormatQueryBuilder.of(Locale.US).set(CurrencyStyle.NAME).set("pattern", "00000.00 ¤").build()); customFormat = MonetaryFormats.getAmountFormat(AmountFormatQueryBuilder.of(Locale.US).set(CurrencyStyle.NAME).set("pattern", "00000.00 ¤").build());
customFormatted = customFormat.format(oneDolar); customFormatted = customFormat.format(oneDolar);
LOGGER.info("One dolar custom formatted : " + customFormatted); LOGGER.info("One dolar custom formatted : " + customFormatted);
} }

View File

@ -1,24 +1,24 @@
package com.baeldung.money; package com.baeldung.money;
import static org.junit.Assert.*;
import javax.money.convert.ConversionQueryBuilder; import javax.money.convert.ConversionQueryBuilder;
import javax.money.convert.MonetaryConversions; import javax.money.convert.MonetaryConversions;
import org.junit.Test;
import com.baeldung.money.JavaMoney; import com.baeldung.money.JavaMoney;
import junit.framework.TestCase; import junit.framework.TestCase;
public class JavaMoneyTest public class JavaMoneyTest
extends TestCase
{ {
JavaMoney j9m;
public JavaMoneyTest( String testName )
{
super( testName );
j9m = new JavaMoney();
}
public void testAmounts() @Test
public void givenAmountsAreCorrect()
{ {
JavaMoney j9m;
j9m = new JavaMoney();
assertEquals("USD", j9m.USD.toString()); assertEquals("USD", j9m.USD.toString());
assertEquals("USD 1", j9m.oneDolar.toString()); assertEquals("USD 1", j9m.oneDolar.toString());
assertEquals("EUR 1", j9m.oneEuro.toString()); assertEquals("EUR 1", j9m.oneEuro.toString());
@ -29,7 +29,10 @@ public class JavaMoneyTest
} }
public void testArithmetic(){ @Test
public void givenArithmeticIsCorrect(){
JavaMoney j9m;
j9m = new JavaMoney();
assertEquals("USD -199.5", j9m.calcAmtUSD.toString()); assertEquals("USD -199.5", j9m.calcAmtUSD.toString());
assertEquals("CHF 111.35", j9m.sumAmtCHF.toString()); assertEquals("CHF 111.35", j9m.sumAmtCHF.toString());
assertEquals("USD 10", j9m.calcMoneyFastMoney.toString()); assertEquals("USD 10", j9m.calcMoneyFastMoney.toString());
@ -37,17 +40,25 @@ public class JavaMoneyTest
assertEquals("USD 4", j9m.divideAmount.toString()); assertEquals("USD 4", j9m.divideAmount.toString());
} }
public void testRounding(){ @Test
public void givenRoundingIsCorrect(){
JavaMoney j9m;
j9m = new JavaMoney();
assertEquals("EUR 1.3", j9m.roundEUR.toString()); assertEquals("EUR 1.3", j9m.roundEUR.toString());
} }
public void testFormatting(){ @Test
public void givenFormatIsCorrect(){
JavaMoney j9m;
j9m = new JavaMoney();
assertEquals("USD1.00", j9m.usFormatted); assertEquals("USD1.00", j9m.usFormatted);
assertEquals("00001.00 US Dollar", j9m.customFormatted); assertEquals("00001.00 US Dollar", j9m.customFormatted);
} }
public void testConversion(){ @Test
public void givenConversionIsNotNull(){
JavaMoney j9m;
j9m = new JavaMoney();
assertNotNull(MonetaryConversions.getConversion(ConversionQueryBuilder.of().setTermCurrency("EUR").build())); assertNotNull(MonetaryConversions.getConversion(ConversionQueryBuilder.of().setTermCurrency("EUR").build()));
assertNotNull(MonetaryConversions.getConversion(ConversionQueryBuilder.of().setTermCurrency("USD").build())); assertNotNull(MonetaryConversions.getConversion(ConversionQueryBuilder.of().setTermCurrency("USD").build()));
assertNotNull(j9m.convertedAmountEURtoUSD); assertNotNull(j9m.convertedAmountEURtoUSD);