My problem is simple really. I needed to make this calculation and display it on the screen to the hundredth:
double test = (500/1423)*10;
cout << setprecision(3) << test;
I would think I would receive the output 3.51 but instead I recieve 0. It must have something to do with dividing numbers to come up with a product of less than 0. How do I get the output of 3.51 only using the 3 numbers I used in the code above?