#ifdef HAVE_MATH_H
#include <math.h>
#endif
-#include <glib.h>
#include <string.h>
+#include "degrees_converters.h"
#define DEGREE_SYMBOL "\302\260"
val_s = (tmp - val_m) * 60;
/* Format */
- result = g_strdup_printf ( "%c%d" DEGREE_SYMBOL "%d'%f\"",
+ result = g_strdup_printf ( "%c%d" DEGREE_SYMBOL "%d'%.4f\"",
sign_c, val_d, val_m, val_s );
return result;
}
case 3:
s = value;
break;
+ default: break;
}
}
} while (ptr != NULL && endptr != NULL);