1 POSITIVE_INFINITY
public static final double POSITIVE_INFINITYThe positive infinity of type double. It is equal to the value returned by Double.longBitsToDouble(0x7ff0000000000000L).
2 sqrt
public static double sqrt(double a)Returns the correctly rounded positive square root of a double value. Special cases:
If the argument is NaN or less than zero, then the result is NaN.
If the argument is positive infinity, then the result is positive infinity.
If the argument is positive zero or negative zero, then the result is the same as the argument.
Otherwise, the result is the double value closest to the true mathetmatical square root of the argument value.
Parameters:
a - a double value.
Returns:
the positive square root of a. If the argument is NaN or less than zero, the result is NaN.
public static final double POSITIVE_INFINITYThe positive infinity of type double. It is equal to the value returned by Double.longBitsToDouble(0x7ff0000000000000L).
2 sqrt
public static double sqrt(double a)Returns the correctly rounded positive square root of a double value. Special cases:
If the argument is NaN or less than zero, then the result is NaN.
If the argument is positive infinity, then the result is positive infinity.
If the argument is positive zero or negative zero, then the result is the same as the argument.
Otherwise, the result is the double value closest to the true mathetmatical square root of the argument value.
Parameters:
a - a double value.
Returns:
the positive square root of a. If the argument is NaN or less than zero, the result is NaN.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货