Skip to content

Attempt at replacing | with * for creating quantities#693

Open
rieder wants to merge 9 commits intoamusecode:mainfrom
rieder:units_mul
Open

Attempt at replacing | with * for creating quantities#693
rieder wants to merge 9 commits intoamusecode:mainfrom
rieder:units_mul

Conversation

@rieder
Copy link
Member

@rieder rieder commented Oct 28, 2020

See issue #687. This PR makes it possible to construct quantities using the * operator, which would previously have resulted in a unit.
With this PR, a unit multiplied/divided by another unit will still give a unit, while other multiplications/divisions will result in a quantity. Of course, quantities can still be converted to units with .to_unit().

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale status: keep-open This issue should not be auto-closed by the bot

Projects

Status: Open PRs

Development

Successfully merging this pull request may close these issues.

3 participants