-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from corenting/feat/add-kor
feat: add south korea
- Loading branch information
Showing
15 changed files
with
124 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
ko_fi: corenting | ||
custom: ["https://www.buymeacoffee.com/corenting"] | ||
custom: ["https://corenting.fr/donate"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
app/src/main/java/fr/corenting/convertisseureurofranc/converters/SouthKoreaConverter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package fr.corenting.convertisseureurofranc.converters | ||
|
||
import android.content.Context | ||
|
||
import fr.corenting.convertisseureurofranc.R | ||
|
||
class SouthKoreaConverter(context: Context) : ConverterAbstract(context, R.raw.kr_values) { | ||
|
||
override fun convertFunction(yearOfOrigin: Int, yearOfResult: Int, amount: Float): Float { | ||
if (yearOfOrigin == yearOfResult) return amount | ||
|
||
val multiplier = getValueForYear(yearOfResult) / getValueForYear(yearOfOrigin) | ||
return amount * multiplier | ||
} | ||
|
||
override fun getCurrencyFromYear(year: Int): String { | ||
return context.getString(R.string.wons) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
2022;107.7 | ||
2021;102.5 | ||
2020;100.0 | ||
2019;99.5 | ||
2018;99.1 | ||
2017;97.6 | ||
2016;95.8 | ||
2015;94.9 | ||
2014;94.2 | ||
2013;93.0 | ||
2012;91.8 | ||
2011;89.9 | ||
2010;86.4 | ||
2009;83.9 | ||
2008;81.7 | ||
2007;78.0 | ||
2006;76.1 | ||
2005;74.4 | ||
2004;72.4 | ||
2003;69.9 | ||
2002;67.5 | ||
2001;65.7 | ||
2000;63.2 | ||
1999;61.8 | ||
1998;61.3 | ||
1997;57.0 | ||
1996;54.6 | ||
1995;52.0 | ||
1994;49.8 | ||
1993;46.8 | ||
1992;44.7 | ||
1991;42.1 | ||
1990;38.5 | ||
1989;35.4 | ||
1988;33.5 | ||
1987;31.3 | ||
1986;30.4 | ||
1985;29.6 | ||
1984;28.8 | ||
1983;28.2 | ||
1982;27.3 | ||
1981;25.4 | ||
1980;21.0 | ||
1979;16.3 | ||
1978;13.8 | ||
1977;12.0 | ||
1976;10.9 | ||
1975;9.5 | ||
1974;7.6 | ||
1973;6.1 | ||
1972;5.9 | ||
1971;5.3 | ||
1970;4.7 | ||
1969;4.0 | ||
1968;3.6 | ||
1967;3.2 | ||
1966;2.9 | ||
1965;2.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
This converter allows you to calculate the buying power in a specified year of any amount of money (for USA, UK and France) to an equivalent amount in another year by taking into account the inflation rate between these two years.<br /> | ||
This converter allows you to calculate the buying power in a specified year of any amount of money (for USA, UK, France and South Korea) to an equivalent amount in another year by taking into account the inflation rate between these two years.<br /> | ||
|
||
To achieve this, this app uses data from various sources : | ||
- The Bureau of Labor Statistics (https://www.bls.gov/cpi/) for the USA | ||
- The Office for National Statistics (https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/cdko/mm23) for the UK | ||
- The INSEE (https://www.insee.fr/fr/statistiques/serie/001643154) for France | ||
To achieve this, this application uses data from various sources : | ||
- USA: Bureau of Labor Statistics (Historical CPI-U), https://www.bls.gov/cpi/ | ||
- UK: Office for National Statistics, https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/cdko/mm23 | ||
- France: INSEE, https://www.insee.fr/fr/statistiques/serie/010605954 | ||
- South Korea: Statistics Korea (Consumer Price Inflation Rate - 소비자물가상승률), https://www.index.go.kr/unity/potal/indicator/PotalIdxSearch.do?idxCd=4226&sttsCd=422601&clas_div=&idx_sys_cd= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Inflation calculator for USA, UK and France | ||
Inflation calculator for various countries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Ce calculateur d'inflation permet de calculer le pouvoir d'achat d'une somme (France, USA ou UK) d’une année donnée en une somme équivalente d’une autre année, en prenant en compte l’inflation entre ces deux années.<br /> | ||
Ce calculateur d'inflation permet de calculer le pouvoir d'achat d'une somme (France, USA, UK et Corée du Sud) d’une année donnée en une somme équivalente d’une autre année, en prenant en compte l’inflation entre ces deux années.<br /> | ||
|
||
Pour cela, cette application utilise les donnée de plusieurs sources : | ||
- Bureau of Labor Statistics (https://www.bls.gov/cpi/) pour les USA | ||
- Office for National Statistics (https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/cdko/mm23) pour le Royaume-Uni | ||
- INSEE (https://www.insee.fr/fr/statistiques/serie/001643154) pour la France | ||
- USA : Bureau of Labor Statistics (Historical CPI-U), https://www.bls.gov/cpi/ | ||
- UK : Office for National Statistics, https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/cdko/mm23 | ||
- France : INSEE, https://www.insee.fr/fr/statistiques/serie/010605954 | ||
- Corée du Sud : Statistics Korea (Consumer Price Inflation Rate - 소비자물가상승률), https://www.index.go.kr/unity/potal/indicator/PotalIdxSearch.do?idxCd=4226&sttsCd=422601&clas_div=&idx_sys_cd= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Calculateur d'inflation pour la France, les USA et le Royaume-Uni | ||
Calculateur d'inflation pour plusieurs pays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters