What is the distance between #(2,6)# and #(4,4)#?
Consider these point as forming a triangle. You can then use Pythagoras to solve the length of the hypotenuse (the line between the points.
Let the distance be d
By keeping the square root you have an exact solution.
If you tried using decimal it would not be!