| ||||||||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||||||||
|
Sunlit Design > The Sun API > Documentation > sdDMS2D Function | ||||||||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdDMS2D FunctionDescriptionReturns a degree value equivalent to a SyntaxsdDMS2D(sign,degree,minute,second)
Return ValuessdDMS2D returns double precision number.ErrorsIf this function finds any errors in it's input parameter(s) it returns -99999999 RemarkssdDMS2D calculates it's value based on the following formula: You can convert a degree value to it's Degrees:Minute:Seconds components using the sdDUnpackx function and to a printable text format using sdD2Text function. ExampleTo convert the eastern longitude 23d:34m:45.332s to
degrees:
To add 12d:34m:2s and 65d:54m:0s together giving a result in
degrees: To find double the angle 34d:43m:15s in degrees: To convert a latitude/longitude stored in 4 variables To fill an array with the sine of all angles from 1 to 2
degrees with 10 arcsecond resolution (Visual Basic): |
|
||||||
| (c) 2001-2012 Sunlit Design www.sunlit-design.com Sat, 04 Feb 2012 04:35:41 PM +700 gives UT | ||||||||