finding absolute value in java
import java.lang.Math;
int sum,x=-5;
sum = Math.abs(x);
finding absolute value in java
import java.lang.Math;
int sum,x=-5;
sum = Math.abs(x);
math.absolute java
float a = 123.0f;
System.out.println(Math.abs(a)); //123.0
double d = -999.3456;
System.out.println(Math.abs(d)); //999.3456
int e = -123;
System.out.println(Math.abs(g)); //123
long g = -12345678;
System.out.println(Math.abs(g)); //12345678
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us