Why doesn’t the following code snippet print out 2.0?
System.out.println(Math.sqrt(2) * Math.sqrt(2.0));
College of Computing Learning Center
Why doesn’t the following code snippet print out 2.0?
System.out.println(Math.sqrt(2) * Math.sqrt(2.0));