HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Math Methods : Return the absolute (positive) value of different numbers
The abs()
method returns the absolute (positive) value of a number.
One of the following:
public static double abs(double number)
public static float abs(float number)
public static int abs(int number)
public static long abs(long number)
Parameter | Description |
---|---|
number | Required. Specifies a number |
Returns: | A double , float , int or long value
representing the absolute value of the specified number |
---|
❮ Math Methods