Here you can find the source of abs(double z)
Parameter | Description |
---|---|
z | double number. |
public static double abs(double z)
//package com.java2s; public class Main { /** Returns absolute value of double number. * @param z double number.//from w ww.j a v a2 s . c om * @return int sign. */ public static double abs(double z) { return (z < 0) ? -z : z; } }