Here you can find the source of square(final double num)
Parameter | Description |
---|---|
num | number to square |
public static double square(final double num)
//package com.java2s; //License from project: Open Source License public class Main { /**//from www .ja v a 2 s .com * Simple square number, just num * num. * * @param num number to square * * @return num * num */ public static double square(final double num) { return num * num; } /** * Simple square number, just num * num. * * @param num number to square * * @return num * num */ public static int square(final int num) { return num * num; } /** * Simple square number, just num * num. * * @param num number to square * * @return num * num */ public static long square(final long num) { return num * num; } }