(Firstly, I'm writing this program on a Mac, but it's in C++)
I'm writing a program that deals with float numbers; the float numbers will be holding different amounts of money. And the program will calculate a few percentages of the money, which will also be kept as float numbers..
I need to figure out how to track the decimal in these numbers; the reason is: I want the program to auto round the float numbers. This is because you don't list money as something like $97.843, you would want it to say $97.84.
So, how could I go about doing this?