Here you can find the source of decimalize(double dms)
public static double decimalize(double dms)
//package com.java2s; /**// w w w .j a v a 2 s .co m * This class was written by Stephen Crane (jscrane@gmail.com) * and is released under the terms of the GNU GPL * (http://www.gnu.org/licenses/gpl.html). */ public class Main { public static double decimalize(double dms) { int deg = (int) dms / 100; double min = dms - deg * 100; return deg + min / 60; } }