Java Decimal Create decimalize(double dms)

Here you can find the source of decimalize(double dms)

Description

decimalize

License

GNU General Public License

Declaration

public static double decimalize(double dms) 

Method Source Code

//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;
    }
}

Related

  1. decimal(final int i)
  2. decimal(Object o)
  3. decimalize(float v)