Giter VIP home page Giter VIP logo

unitfulcurrency.jl's Introduction

UnitfulCurrency.jl

Stable Docs Latest Docs Travis Build Status Build status Formatting

GitHub Repo DOI

Currencies as Units!

Installation

To install, open a Julia REPL and run the following:

]add UnitfulCurrency

Adding Custom Currencies

To add custom currencies, use the currencyunit macro:

@currencyunit SYM NewCurrencyName

See Unitful.jl documentation for more detail on custom units.

Currency Pairs / Markets

To define currency pairs (or currency markets), use the CurrencyPair (or CurrencyMarket) type:

CurrencyPair(EUR, USD)
CurrencyMarket(EUR, USD, 1.0126)

Fiat Currencies

The following fiat currencies are available:

Currency Code Currency Code Currency Code
United Arab Emirates Dirham AED Guyana Dollar GYD Kina PGK
Afghani AFN Hong Kong Dollar HKD Philippine Piso PHP
Lek ALL Lempira HNL Pakistan Rupee PKR
Armenian Dram AMD Kuna HRK Zloty PLN
Netherlands Antillean Guilder ANG Gourde US Dollar HTGUSD Guarani PYG
Kwanza AOA Forint HUF Qatari Rial QAR
Argentine Peso ARS Rupiah IDR Romanian Leu RON
Australian Dollar AUD New Israeli Sheqel ILS Serbian Dinar RSD
Aruban Florin AWG IndianRupee INR Russian Ruble RUB
Azerbaijan Manat AZN Iraqi Dinar IQD Rwanda Franc RWF
Convertible Mark BAM Iranian Rial IRR Saudi Riyal SAR
Barbados Dollar BBD Iceland Krona ISK Solomon Islands Dollar SBD
Taka BDT Jamaican Dollar JMD Seychelles Rupee SCR
Bulgarian Lev BGN Jordanian Dinar JOD Sudanese Pound SDG
Bahraini Dinar BHD Yen JPY Swedish Krona SEK
Burundi Franc BIF Kenyan Shilling KES Singapore Dollar SGD
Bermudian Dollar BMD Som KGS Saint Helena Pound SHP
Brunei Dollar BND Riel KHR Leone SLL
Boliviano BOB Comorian Franc KMF Somali Shilling SOS
Brazilian Real BRL North Korean Won KPW Surinam Dollar SRD
Bahamian Dollar BSD Won KRW South Sudanese Pound SSP
Ngultrum BTN Kuwaiti Dinar KWD Dobra STD
Pula BWP Tenge KZT El Salvador Colon SVC
Belarusian Ruble BYN Lao Kip LAK Syrian Pound SYP
Belize Dollar BZD Lebanese Pound LBP Lilangeni SZL
Canadian Dollar CAD Sri Lanka Rupee LKR Baht THB
Congolese Franc CDF Liberian Dollar LRD Somoni TJS
Swiss Franc CHF Loti Rand LSLZAR Turkmenistan New Manat TMT
Chilean Peso CLP LibyanDinar LYD Tunisian Dinar TND
Yuan Renminbi CNY Moroccan Dirham MAD Paanga TOP
Colombian Peso COP Moldovan Leu MDL Turkish Lira TRY
Costa Rican Colon CRC Malagasy Ariary MGA Trinidadand Tobago Dollar TTD
Peso Convertible CUC Denar MKD Tanzanian Shilling TZS
Cuban Peso CUP Kyat MMK Hryvnia UAH
Cabo Verde Escudo CVE Tugrik MNT Uganda Shilling UGX
Czech Koruna CZK Pataca MOP United States Dollar USD
Djibouti Franc DJF Ouguiya MRO Peso Uruguayo UYU
Danish Krone DKK Mauritius Rupee MUR Uzbekistan Sum UZS
Dominican Peso DOP Rufiyaa MVR Bolivar VEF
Algerian Dinar DZD Malawi Kwacha MWK Dong VND
Egyptian Pound EGP Mexican Peso MXN Vatu VUV
Nakfa ERN Malaysian Ringgit MYR Tala WST
Ethiopian Birr ETB Mozambique Metical MZN CFA Franc BEAC XAF
Euro EUR Namibia Dollar Rand NADZAR East Caribbean Dollar XCD
Fiji Dollar FJD Naira NGN CFA Franc BCEAO XOF
Pound Sterling GBP Cordoba Oro NIO CFP Franc XPF
Lari GEL Norwegian Krone NOK Cayman Islands Dollar XYD
Ghana Cedi GHS Nepalese Rupee NPR Yemeni Rial YER
Gibraltar Pound GIP New Zealand Dollar NZD Rand ZAR
Dalasi GMD Rial Omani OMR Zambian Kwacha ZMW
Guinean Franc GNF Balboa US Dollar PABUSD Zimbabwe Dollar ZWL
Quetzal GTQ Sol PEN

unitfulcurrency.jl's People

Contributors

juliatagbot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.