hi, i am writing a program that keeps track of the money in my debit card account. i need the program to be able to pull out a value (such as 1.56356) from a text file, round it to the nearest hundredth, and put it back into the file. any solutions?
All you need is to rewrite the value with 2 digit precision after the dot. Look at ... . There are examples that do exactly what you need. Just read the numbers from the input file, and write them to the output file with the setprecision functionality.