Mega Code Archive

 
Categories / Java / Development Class
 

Using strict math at the method level

strictfp class StrictPI {   public static void main(String[] args) {     // Calculate PI^2     double PI2 = Math.PI * Math.PI;     System.out.println(PI2);   } }