im getting wrong results, if tendered was declared 29.26 and purchase was 100. i should be getting 7074 but im getting 7000. anyone know where it went wrong?Code:change_in_cents = (int)(floor(tendered - purchases)* 100.0 + 0.5);
|
Results 1 to 2 of 2
Thread: Problem with a line
|
Click Here to Expand Forum to Full Width |