Java tutorial
public class Main { public static void main(String[] args) { double d1 = 123, d2 = -456, d3 = 0.0; System.out.println("square root of " + d1 + " = " + StrictMath.sqrt(d1)); System.out.println("square root of " + d2 + " = " + StrictMath.sqrt(d2)); System.out.println("square root of " + d3 + " = " + StrictMath.sqrt(d3)); } }