i've declared my variables as doubles, yet when i try and set the precision of the percentage difference the numbers come back as, e.g. -3.2+001 - and it also messes up the other variables in their output
does anyone know the solution or how i would set the precision of the percentage difference to one decimal place?
No I mean you should use std::fixed similar to how you have used std::setprecision. std::cout << std::fixed << std::setprecision(1) << 1.2345; // prints "1.2"