Skip to content

eliminate subunits for forints#679

Merged
antstorm merged 1 commit intoRubyMoney:masterfrom
Azdaroth:eliminate-subunits-for-forints
Jan 25, 2017
Merged

eliminate subunits for forints#679
antstorm merged 1 commit intoRubyMoney:masterfrom
Azdaroth:eliminate-subunits-for-forints

Conversation

@Azdaroth
Copy link
Contributor

Solves #677

@coveralls
Copy link

coveralls commented Jan 25, 2017

Coverage Status

Coverage remained the same at 99.277% when pulling 4ceb813 on Azdaroth:eliminate-subunits-for-forints into c7999bd on RubyMoney:master.

@antstorm
Copy link
Contributor

@Azdaroth thanks!

@antstorm antstorm merged commit 7552ed6 into RubyMoney:master Jan 25, 2017
roshats added a commit to SoftSwiss/money that referenced this pull request Jan 15, 2018
In RubyMoney#679 `subunit_to_unit` for HUF was change from 100 to 1. According to [ISO](https://www.iso.org/iso-4217-currency-codes.html) (https://www.currency-iso.org/dam/downloads/lists/list_one.xml) and [wiki](https://en.wikipedia.org/wiki/Hungarian_forint) `subunit_to_unit` for HUF is 100. It is important to have HUF configured according to ISO because usually cents is used in communication between services. Also, https://github.com/RubyMoney/money-rails gem recommends to store amount in cents.
roshats added a commit to SoftSwiss/money that referenced this pull request Jan 15, 2018
In RubyMoney#679 `subunit_to_unit` for HUF was change from 100 to 1. According to [ISO](https://www.iso.org/iso-4217-currency-codes.html) (https://www.currency-iso.org/dam/downloads/lists/list_one.xml) and [wiki](https://en.wikipedia.org/wiki/Hungarian_forint) `subunit_to_unit` for HUF is 100. It is important to have HUF configured according to ISO because usually cents is used in communication between services. Also, https://github.com/RubyMoney/money-rails gem recommends to store amount in cents.
roshats added a commit to SoftSwiss/money that referenced this pull request Jan 15, 2018
In RubyMoney#679 `subunit_to_unit` for HUF was change from 100 to 1. According to [ISO](https://www.iso.org/iso-4217-currency-codes.html) (https://www.currency-iso.org/dam/downloads/lists/list_one.xml) and [wiki](https://en.wikipedia.org/wiki/Hungarian_forint) `subunit_to_unit` for HUF is 100. It is important to have HUF configured according to ISO because usually cents is used in communication between services. Also, https://github.com/RubyMoney/money-rails gem recommends to store amount in cents.
matid added a commit to matid/money that referenced this pull request May 5, 2024
Subunits of Hungarian forint are no longer in circulation and were eliminated in RubyMoney#679.
However, ISO continues to treat HUF as a two decimal place currency.
This can be confirmed against the standard here: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml

To align Money with the ISO 4217 standard, this change restores original behavior of considering HUF a 2 decimal point currency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants