You are viewing a single comment's thread. Return to all comments →
I think casting will allow to use parentheses:
double tip = mealCost * ((double)tipPercent / 100);
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
I think casting will allow to use parentheses:
double tip = mealCost * ((double)tipPercent / 100);