Here you can find the source of abs(Double a)
Parameter | Description |
---|---|
a | the a |
public static double abs(Double a)
//package com.java2s; public class Main { /**//from w ww . ja v a 2 s .c o m * Abs. * * @param a the a * @return the int */ public static int abs(Integer a) { return Math.abs(a); } /** * Abs. * * @param a the a * @return the long */ public static long abs(Long a) { return Math.abs(a); } /** * Abs. * * @param a the a * @return the float */ public static float abs(Float a) { return Math.abs(a); } /** * Abs. * * @param a the a * @return the double */ public static double abs(Double a) { return Math.abs(a); } }