positionToDeg (Function) |
Top Previous Next |
This function converts a coordinate from GPS position format to decimal degrees.
Note: This function works with DOUBLE, but can also work with FLOAT as described in the Floating-point math introductory section.
Input: v : DINT Value to convert.
Returns: DOUBLE The value in decimal degrees.
Declaration: FUNCTION positionToDeg : DOUBLE;
Example: INCLUDE rtcu.inc |