I'm attempting to read lines of a file and store the contents of the line in an object.
This is an example line (x,y,z co-ordinates) :
-12.852222 32.548111 -934.306681
My problem is that my program is rounding these numbers up and I need absolute precision. Having read one line, storing the numbers in the object and printing out the values to make sure they are correct they now look like this:
X: -12.8522 Y: 32.5481 Z: -934.307
This is probably something to do with the types I'm using. The variables are declared as doubles in the object. I've also tried floats, which still gives the same problems.
If you want to see any of my code, please just ask.
Thanks