tobiasschuerg / Android Money
Licence: mit
Simple money and currency converter library for android.
Stars: ✠66
Programming Languages
kotlin
9241 projects
Projects that are alternatives of or similar to Android Money
react-local-currency
💵 💴Shows the price of your services in the customer's currency 💶 💷
Stars: ✠21 (-68.18%)
Mutual labels: money, currency, currency-converter
currency-converter
💰 Easily convert between 32 currencies
Stars: ✠16 (-75.76%)
Mutual labels: money, currency, currency-converter
Money
A money and currency library for PHP
Stars: ✠855 (+1195.45%)
Mutual labels: currency, currency-converter, money
Laravel Money
Currency formatting and conversion package for Laravel
Stars: ✠261 (+295.45%)
Mutual labels: currency, currency-converter, money
Money
PHP implementation of Fowler's Money pattern.
Stars: ✠3,868 (+5760.61%)
Mutual labels: currency, currency-converter, money
Swap
💱 Currency exchange rates library
Stars: ✠1,195 (+1710.61%)
Mutual labels: currency, currency-converter, money
swift-currency
Type-safety and algorithms for working with money in Swift.
Stars: ✠88 (+33.33%)
Mutual labels: money, currency
Laravel Cconverter
A simple currency converter plugin for Laravel 5. Currency providers: The European Central Bank, OpenExchange, CurrencyLayer and fixer.io
Stars: ✠39 (-40.91%)
Mutual labels: currency, currency-converter
Gocurrency
Simple currency converter. Insert an amount, what currency to convert from and what currency to convert to.
Stars: ✠26 (-60.61%)
Mutual labels: currency, currency-converter
Go Money
Go implementation of Fowler's Money pattern
Stars: ✠887 (+1243.94%)
Mutual labels: currency, money
Cashify
💸 Lightweight currency conversion library, successor of money.js
Stars: ✠329 (+398.48%)
Mutual labels: currency, money
Forex Python
Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
Stars: ✠378 (+472.73%)
Mutual labels: currency, currency-converter
Dinero.js
Create, calculate, and format money in JavaScript and TypeScript.
Stars: ✠5,286 (+7909.09%)
Mutual labels: currency, money
currency-api
Free Currency Exchange Rates API with 150+ Currencies & No Rate Limits
Stars: ✠507 (+668.18%)
Mutual labels: currency, currency-converter
Laravel Swap
💵 Currency exchange rates for Laravel and Lumen
Stars: ✠296 (+348.48%)
Mutual labels: currency, currency-converter
Php Forex Quotes
PHP Library for fetching realtime forex quotes.
Stars: ✠61 (-7.58%)
Mutual labels: currency, currency-converter
Narvalo.NET
Applied functional patterns for C#. Money and Currency types. MVP framework. (Obsolete)
Stars: ✠16 (-75.76%)
Mutual labels: money, currency
FinanceKit
FinanceKit is a Framework for iOS and Mac to build apps working with financial data, like money, currencies, stocks, portfolio, transactions and other concepts.
Stars: ✠15 (-77.27%)
Mutual labels: money, currency
Vue Numeric
Input field component to display a formatted currency value based on Vue.js
Stars: ✠341 (+416.67%)
Mutual labels: currency, money
android-money
Simple money and currency library for android (written in kotlin).
Create Money
Creating money is as easy as:
// define your currencies
val euro = Currency("EUR", "Euro", 1.0)
val bitcoin = Currency("XBT", "Bitcoin", 0.000209580) // Oct. 17 2017, 21:00
// etc ...
val savedMoney = Money(1358.03, euro)
log("I saved $savedMoney")
I saved 1.358,03 €
Convert Money
Also converting between currencies is straight forward:
val bitcoinMoney = savedMoney.convertInto(bitcoin)
log("I could invest my $availableMoney and get $bitcoinMoney instead")
I could invest my 1.358,03 € and get 0,28020846 XBT instead
Money Calculations
Simple Arithmetics
If using kotlin just use the default operators (+,-,*, /) or in java (.plus()
, .minus()
, ...):
val savedMoney = Money(1337, euro)
val birthdayMoney = Money(125, usDollar)
val availableMoney = savedMoney + birthdayMoney.convertInto(euro)
log("So in total I've now $availableMoney")
So in total I've now 1.358,03 €
Summing up / Average
For summing up the MoneyList
can be used:
val moneyList = MoneyList(usDollar)
moneyList.add(Money(100.01, usDollar))
moneyList.add(Money(1.27, usDollar))
moneyList.add(Money(20, usDollar))
moneyList.add(Money(13.37, usDollar))
log("In total I got: ${moneyList.sum()}")
In total I got: $134.65
Add Library
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.tobiasschuerg:android-money:v0.3'
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].