For one calculation I need to round to 2 decimals during the calculation.
Relevant code:
count = 500;
price = 0.00077
pounds = 150,000
double value = ((350 - count) * price) * (pounds / 100);
To get the result I need, (350 - count) * price
must round to 2 decimal places before doing the pounds / 100
so how might i round to 2 decimal places during a calculation?