Latest web development tutorials

Java toDegrees () metoda

Liczba klas Java Liczba klas Java


Metoda toDegrees () służy do argumentów w perspektywie.

gramatyka

double toDegrees(double d)

parametry

  • d - wszelkie rodzime typy danych.

Wartość zwracana

Ta metoda zwraca podwójną wartość.

Przykłady

public class Test{
	public static void main(String args[]){
		double x = 45.0;
		double y = 30.0;

		System.out.println( Math.toDegrees(x) );
		System.out.println( Math.toDegrees(y) );
	}
}

Skompilować powyższy program, wyjście jest:

2578.3100780887044
1718.8733853924698

Liczba klas Java Liczba klas Java