We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When dividing between two dimensionless UnitScalars, units is converted to an int. Is this the expected behavior?
units
int
Example:
>>> foo = UnitScalar(1000, units='mole') >>> bar = UnitScalar(10, units='mole') >>> baz = foo / bar >>> print baz.units 1 >>> print type(baz.units) <class 'scimath.units.unit.unit'> >>> foo_2 = UnitScalar(1000, units='none') >>> bar_2 = UnitScalar(10, units='none') >>> baz_2 = foo_2 / bar_2 >>> print baz_2.units 1 >>> print type(baz_2.units) <type 'int'>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When dividing between two dimensionless UnitScalars,
units
is converted to anint
. Is this the expected behavior?Example:
The text was updated successfully, but these errors were encountered: