Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change XXX.minorUnits to 0 #33

Merged
merged 1 commit into from
Feb 29, 2020
Merged

Change XXX.minorUnits to 0 #33

merged 1 commit into from
Feb 29, 2020

Conversation

Mordil
Copy link
Member

@Mordil Mordil commented Feb 29, 2020

Motivation:

ISO 4217 leaves the 'minorUnits' or 'exponent' of several currencies as 'undefined'. For example, both XTS and XXX have no specified value.

XTS was given the value of '1' arbitrarily for the purposes of testing rounding behaviors, while XXX should be 0 as "no currency" is used
in transactions with XXX.

Modification:

  • Change: XXX.minorUnits to be 0

Result:

XXX currency values should now be whole number representations.

Motivation:

ISO 4217 leaves the 'minorUnits' or 'exponent' of several currencies as 'undefined'. For example, both XTS and XXX have no specified value.

XTS was given the value of '1' arbitrarily for the purposes of testing rounding behaviors, while XXX should be 0 as "no currency" is used
in transactions with XXX.

Modification:

- Change: `XXX.minorUnits` to be `0`

Result:

`XXX` currency values should now be whole number representations.
@Mordil Mordil added bug Something isn't working semver-patch Require SemVer Patch bump labels Feb 29, 2020
@codeclimate
Copy link

codeclimate bot commented Feb 29, 2020

Code Climate has analyzed commit 598ffb4 and detected 0 issues on this pull request.

View more on Code Climate.

@codecov
Copy link

codecov bot commented Feb 29, 2020

Codecov Report

Merging #33 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #33   +/-   ##
=======================================
  Coverage   96.31%   96.31%           
=======================================
  Files           6        6           
  Lines         489      489           
=======================================
  Hits          471      471           
  Misses         18       18

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 103770f...598ffb4. Read the comment docs.

@Mordil Mordil merged commit cecf3a7 into master Feb 29, 2020
@Mordil Mordil deleted the change-xxx-minorunits branch February 29, 2020 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semver-patch Require SemVer Patch bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant