I am currently trying to output an array of integers to a file, I have got it working however I am dealing with some small numbers and the output is messing up. Below is some of the code:
As you can see for the most part it is correct however some of the numbers are so small that it is outputting things like 5.72559e-05 which I need rounded down to 0. I still require the accuracy for the other numbers however. I'm sure this isn't to hard a problem to fix but I have no idea where to look. Any help would be appreciated, thanks.