java.lang.Math.PI : 3.141592653589793
Math.PI: the ratio of the circumference of a circle to its diameter.
/**
* @author lautturi.com
* Java example: get pi value
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args) {
System.out.println("PI:" + Math.PI);
}
}Sourceal.www:utturi.comoutput:
PI:3.141592653589793