Distance between two coordinates

So, you put in latitude and longitude with six decimal places of precision, but PI to only two?

One degree of latitude = roughly 110 Km

Note: "float" variables are accurate to 6-7 decimal places, and you need at least 9 decimal places of precision to do accurate distance calculations on the Earth's surface.