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
Multiply or Divide Money with Money? #9
Comments
A Money implementation I have in Ruby actually does the following: Money.new(10) / 2
# => [#<Money $5.00>, #<Money $5.00>] While that initially seemed weird to me, it actually makes sense with how money is used. Money.new(11) / 3
# => [#<Money $3.67>, #<Money $3.67>, #<Money $3.66>] |
I think it doesn't... 👍 About the list as return value I think we should add also percentage with this notation, what do you think? |
Can you elaborate on "upper and lower bound" |
the other way was to pass options like: but we could go with your idea... and let's think about it later... |
implemented by #22 |
Resolve "Product API" Closes elixirmoney#9 See merge request !4
Does it make any sense to multiply or divide a
Money
with aMoney
?I don’t usually say $5 * $5, it would be $5 * 5
I also don’t say $5 / $5 but rather $5 / 5
The text was updated successfully, but these errors were encountered: