changing numeric types of latitudes so that equality works