Answers for "java math.abs method"

5

finding absolute value in java

import java.lang.Math;
int sum,x=-5;
sum = Math.abs(x);
Posted by: Guest on August-14-2020
0

maths.abs function in java

public static DataType abs(DataType a)
a : the argument whose absolute value is to be determined
Returns : This method returns the absolute value of the argument.
Posted by: Guest on June-22-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language