The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function GeoLongitude (InNum: double; Format: TDegreeFormat; Precision: integer): string;

The function GeoLongitude converts a decimal geographic longitude value contained in InNum into a string based on degrees, minutes and seconds. InNum make take values between -180 (degrees west) and +180 (degrees east); any values beyond this range are automatically set to the nearest limit. The parameter Format determines which format is used. The parameter Precision specifies the number of decimal places.

The following example shows the results of calling "GeoLongitude (-23.1768, Format, 3)" using the three possible formats:

dfDeg 23.177 W
dfDegMin 23 10.608' W
dfDegMinSec 23 10' 36.480" W

Last Update: 2012-Oct-20