we should be able to *divide* money amounts of the same type, e.g. Bill Gates is 123456.789 x richer than me.
Closed this issue · 0 comments
mw66 commented
we should be able to divide money amounts of the same type, e.g. Bill Gates is 123456.789 x richer than me.
The return type is double, not sure if D lang support this?
https://github.com/qznc/d-money/blob/master/source/money.d#L149
/// Can *divide* money amounts of the same type.
double opBinary(string op)(const T rhs) const {...
else static if (op == "/")
}