I have following problem, and I already searched in many different ones but couldn't find a solution.
Basically I have two double variables e.g. Coordinate x and y:
double x = 52.123456789;
double y = 8.123456789;
Now i pass these two variables to a function that expects two double values!
E.g.: Imagine there is a function Circle that expects two double varibles to draw a circle around the center of the coordinates
Circle(x,y);
The problem is, that somehow the coordinates are cut after 6 digits.
Something like that:
x = 52.1235;
y = 8.12346;
My question is not how to set the output to a certain amount of digits with std::cout.setprecision() and so on. I want to know if there is a possibility to fix the number of digits when you pass double variables to a function!?