Java:

  今天,在写一个求圆面积的代码时,发现一下两种表达方式的结果不一样。求解

public class Test {
	public static void main(String[] args) {
		final double PI = 3.14;
		System.out.println("PI*3*3 = "+ PI*3*3);    
		System.out.println("PI*(3*3) = " + PI*(3*3));
	}
}

  

原文地址:https://www.cnblogs.com/LGMing/p/4532114.html