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
__mul__()
StLb
As well as overloading the + and - operators, StLb should have the ability to multiply as well:
+
-
The multiplication factor should be a number - instance.in_lbs should be multiplied by the factor with two possible outcomes depending on context:
instance.in_lbs
new_instance = StLb(0, instance.in_lbs * factor)
whole_stones
remainder_lbs
in_lbs
I can't imagine a use case where I'd need to multiply two StLb objects together.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As well as overloading the
+
and-
operators,StLb
should have the ability to multiply as well:The multiplication factor should be a number -
instance.in_lbs
should be multiplied by the factor with two possible outcomes depending on context:new_instance = StLb(0, instance.in_lbs * factor)
whole_stones
,remainder_lbs
andin_lbs
values updated in placeI can't imagine a use case where I'd need to multiply two
StLb
objects together.The text was updated successfully, but these errors were encountered: