max value of double java
System.out.println(Double.MAX_VALUE);//(2-2^52)^21023, maximum value < Infinity
System.out.println(Double.POSITIVE_INFINITY);//Infinity
max value of double java
System.out.println(Double.MAX_VALUE);//(2-2^52)^21023, maximum value < Infinity
System.out.println(Double.POSITIVE_INFINITY);//Infinity
how to get the max value of an array java
public static double arrayMax(double[] arr) {
double max = Double.NEGATIVE_INFINITY;
for(double cur: arr)
max = Math.max(max, cur);
return max;
}
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