Java Abs abs(double number)

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

Description

abs

License

LGPL

Parameter

Parameter Description
number a parameter

Return

abs value

Declaration

public static double abs(double number) 

Method Source Code

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

public class Main {
    /**//  www .ja v  a2  s  . c  o m
     * abs
     * @param number
     * @return abs value
     */
    public static double abs(double number) {
        return (number <= 0.0D) ? 0.0D - number : number;
    }
}

Related

  1. abs(Double d)
  2. abs(double d)
  3. abs(double d1)
  4. abs(double n)
  5. abs(double number)
  6. abs(double self)
  7. abs(double value)
  8. abs(double value)
  9. abs(double value)