Radian to Degree - Java java.lang

Java examples for java.lang:Math Radian

Description

Radian to Degree

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        double rad = 2.45678;
        System.out.println(Rad2Deg(rad));
    }//  ww w.ja  v a2  s.  co  m

    public static double Rad2Deg(double rad) {
        return (rad * 180d / Math.PI);
    }
}

Related Tutorials