Skip to content

absoluteValue(n)

Ozan Onur TEK edited this page Mar 21, 2016 · 3 revisions

absoluteValue(n)

Returns the absolute value of n
Input types: int, long, double, float. Return type: double.

Usage:

Java Code:
public class Test {
        public static void main(String...args){
  System.out.println(EasyMath.absoluteValue(-1));
       }
          }
        //Console Output:
         1.0

Clone this wiki locally