This question has already been answered:
- Round numbers in C ++ 1 answer
When I find the root in c ++, it is automatically rounded when in java to the last digit, as it can be removed and then rounded to 6 characters. Sorry for the stupid question I rummage in java more. I use with ++ 11
double dist(point x, point y) { return sqrt((xx-yx) * (xx-yx) + (xy-yy) * (xy-yy));} This method returns a number with 5 digits after the decimal point, although there are more, how do I get the full number to be returned?