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

Resolution appears to be lost when coverting bytes to GiB #216

Merged
merged 10 commits into from
Nov 24, 2021

Conversation

olbrich
Copy link
Owner

@olbrich olbrich commented Dec 29, 2020

Fixes #203

I have taken the approach of forcing the scalar of a unit to a rational number when it is being converted. I can't think of any use cases where one would want integer math to be respected during conversIons.

This seems to provide the expected behavior without altering behavior of the library very much.

@olbrich olbrich added bug confirmed Minor add functionality in a backwards-compatible manner labels Dec 29, 2020
…so an Integer, then make the resulting scalar an integer
@olbrich olbrich self-assigned this Jan 1, 2021
@olbrich olbrich added this to the Version 2.4.0 milestone Nov 24, 2021
@olbrich olbrich merged commit b0faa95 into master Nov 24, 2021
@olbrich olbrich deleted the olbrich/issue203 branch November 24, 2021 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Minor add functionality in a backwards-compatible manner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolution appears to be lost when coverting bytes to GiB
1 participant