Java Abs abs(Double a)

Here you can find the source of abs(Double a)

Description

Abs.

License

Open Source License

Parameter

Parameter Description
a the a

Return

the double

Declaration

public static double abs(Double a) 

Method Source Code

//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);
    }
}

Related

  1. abs(double d)
  2. abs(Double d)
  3. abs(double d1)
  4. abs(double n)