完完全全的从jdk-doc上copy下来的,怎么会没有?要学会看文档static double sqrt(double a)
Returns the correctly rounded positive square root of a double value.
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.
Returns the correctly rounded positive square root of a double value.
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.
解决方案 »
- 如何禁止IE缓存JSP页面中的视频文件
- 怎么实现类似资源管理器那样的界面显示文件?
- JAVA 帮助问题
- ant的最奇怪的问题,求教各位!!!
- (理睬一下,点数加到100不够可以再加)刚才十万火急的:请教代码的。不好意思有点事情耽搁了一下没有及时的提出问题。现在问题如下:
- 关于finalize调用顺序的问题,达人请进
- 如何在drawString绘出的文字上加入背景颜色!!!!
- 调查!!!有多少朋友过了scjd呢??大家猜现在中国能有多少人过??
- PreparedStatement.close()的问题
- Swing中实现了Icon接口的类的异常问题
- 请教高手关于引用拷贝,浅拷贝及深拷贝
- 我写了一个关于接口的程序,大家来讨论一下接口的作用
第一个参数是被开方的数
第二个参数是开方的幂Math.sqrt(a)
相当于
Math.sqrt(a,2)
Math.sqrt(a)
相当于
Math.pow(a,2)