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
I don't quite understand the effect of the order of multiplication, and I think that as long as the decimal number is 0 in the formula, the result will be 0.
I don't quite understand the effect of the order of multiplication, and I think that as long as the decimal number is 0 in the formula, the result will be 0.
contribution[msg.sender] * (decimalCases / totalContributed); decimalCases=0 result=0
(contribution[msg.sender] * decimalCases) / totalContributed; decimalCases=0 result=0
What kind of sequential control can avoid getting a result of 0?
The text was updated successfully, but these errors were encountered: