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....



DegreeToStr


Unit:SDL_math1
Class:None
Declaration:function DegreeToStr (InNum: double; Format: TDegreeFormat; Precision: integer): string;

The function DegreeToStr converts a decimal degree value contained in InNum into a string using one of the popular formats based on degrees, minutes and seconds. 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 "DegreeToStr (13.562, Format, 3)" using the three possible formats:

dfDeg 13.562
dfDegMin 13 31.560'
dfDegMinSec 13 31' 33.600"


Last Update: 2012-Oct-20