如何从十进制坐标确定纬度是北纬还是南纬,或者是西经还是东经?

How to determine if Latitude is North or South, or Longitude West or East from decimal coordinate?

假设我有这个职位:32.709237, 51.627789 我需要知道它的纬度是 W 还是 E ,经度是 N 还是 S 。

If 1st value = positive the mean you are in East
If 1st value = negative the mean you are in West
If 2nd value = positive the mean you are in North
If 2nd value = negative the mean you are in South

纬度北正南负。
同样,经度东正西负。

if(value<0)
//value is negative