so would my equation be:

d^2 + 3^2=6^2
d^2 + 9=36
d^2=27
d=square root of 27?
d=5.197 or 5.2?

yes, d = √27

The number of decimal places will depend on the problem.
Sometimes it will tell you how many decimal places you are to give.