Java Abs abs(double d)

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

Description

abs

License

Apache License

Declaration

public static double abs(double d) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static float abs(float f) {
        return f < 0 ? -f : f;
    }/*from  w  w  w .java2 s  .  c o  m*/

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

    public static double abs(double d) {
        return d < 0 ? -d : d;
    }
}

Related

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