Here you can find the source of toRadians(int latitude)
public static double toRadians(int latitude)
//package com.java2s; /*/* ww w. j a va2 s. c o m*/ * Copyright (c) 2009. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */ public class Main { public static double toRadians(int latitude) { return toDegrees(latitude) * Math.PI / 180; } public static double toDegrees(int val) { return (double) val / ((1 << 24) / 360.0); } }