| ||
| Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us | ||
|
Sunlit Design > The Sun API > Documentation > sdUnit2D Function | ||
|
- Introduction + Using the Functions + User Guide + Function Reference + Constants
|
sdUnit2D FunctionDescriptionReturns the result of converting avalue in some unit into degrees.
SyntaxsdUnit2D(value,fromunit)
Return ValuessdUnit2D returns a double precision number.ErrorsIf this function finds any errors in it's input parameter(s) it returns -99999999 RemarksThe function converts between units of time (Day, Hour, Minute, Second) and units of rotation (Degree, Arcminute, Arcsecond, Radian) on the basis that:
You can convert a degree value to another unit by using the sdD2Unit function. 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. Example To convert 23 arcseconds to degrees To convert pi/2 radians to degrees: |
|
| (c) 2001-2010 Sunlit Design www.sunlit-design.com Sat, 31 Jul 2010 05:34:09 AM +600 gives UT | ||