Hello all,
I have a simple program for tracking our money, but can't seem to get the decimals under control. I have a variable named money as a double but need to get hose darn decimal points down to 2 n ot the current amount i get. How does one go about making $123.77 instead of 123.772736362627278, and still have accurate math when adding and subtracting from?
I have a simple program for tracking our money, but can't seem to get the decimals under control. I have a variable named money as a double but need to get hose darn decimal points down to 2 n ot the current amount i get. How does one go about making $123.77 instead of 123.772736362627278, and still have accurate math when adding and subtracting from?