Changed type for location to double

Everything is in double because float is not precise enough