374 / 9 = 41.6 (from calculator )
if in c++, it will become 374 / 9 = 41.555
how do i make the final calculation become 41.6 ?
i've tried ceil() and setprecision(1) , the answer i got quite big different compare with the answer from calculator.
answer from ceil()
42 * 15.85 = 665.70
answer from setprecision(1), nothing change, it only works for print out
41.55 * 15.85 = 658.56
answer from calculator
41.6 * 15.85 = 659.36