You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.
I can't seem to take a percentage of a Money object accurately, because the 'multiply' override takes a 'Money' object directly, which drops my decimal precision to two place. For example:
var balance: Money = 5000
var interest = balance * .0166666
This should result in $83.33, however I believe the .0166666 is converted to a Money object, which represents it as $.02, meaning the interest variable is set to $100 - not close enough for horseshoes or hand grenades.
The text was updated successfully, but these errors were encountered:
I can't seem to take a percentage of a Money object accurately, because the 'multiply' override takes a 'Money' object directly, which drops my decimal precision to two place. For example:
This should result in $83.33, however I believe the
.0166666
is converted to a Money object, which represents it as $.02, meaning theinterest
variable is set to $100 - not close enough for horseshoes or hand grenades.The text was updated successfully, but these errors were encountered: