Skip to content

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

2 participants