Java Abs abs(double d1)

Here you can find the source of abs(double d1)

Description

abs

License

Open Source License

Declaration

public static double abs(double d1) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double abs(double d1) {
        return d1 < 0d ? -d1 : d1;
    }/* w  ww .  j a v a2  s.co  m*/

    public static int abs(int d1) {
        return d1 < 0 ? -d1 : d1;
    }
}

Related

  1. abs(Double a)
  2. abs(double d)
  3. abs(Double d)
  4. abs(double n)
  5. abs(double number)
  6. abs(double number)
  7. abs(double self)