Hello world,
me and my friend we have the same programm but me with C::B and him with C++ builder.
In our programm we write in a txt files values (order of magnitude: 4.5675e-10 ) but when i compare my result and his results we have a difference:
==> I have 4 (or 5 i don't remember) digits
==> my friend have near 10 digits
how i can solve it? i want to increase the number of digit when i write something with the command "ofstream"
i have test ::setprecision , std::fixed/std::scientific, std::setw
but it don't work ....during the program we have difference when there is conditions like this:
So, i don't know if my program round number or if it is just in displaying...?
(sometime we haven't the same result with my friend, so i think my compilator is not very accurate?? it's this or a little difference in our programm?)Can you help me by explanation of your opinion ?
thank you