distance from earth to sun in m code example Example: distance from the earth to the sun 1 AU (astronomical unit)