正在加载图片...
Method Description Example abs( x bsolute value of x abs(23.7)is23.7 (this method also has versions for float, abs( 0.0 )is 0.0 nt and long values) abs(-23.7)is23.7 eil( x )rounds x to the smallest integer not less than ceil( 9.2 )is 10.0 a1(-9.8)1s-9.0 cos( x trigonometric cosine ofx cos(0.0)1s1.0 is in radians) exp( x ) exponential method ex e(1.0)is2.71828 ex(20)is738906 floor( x)rounds x to the largest integer not greater floor( 9.2 )is90 than x £1oor(-9.8)1s-10.0 log( x) natural logarithm ofx(base e) 1og(2.718282)is1.0 1og(7389056)is2.0 larger value of x andy max(2.3,12.7)is12.7 y ( this method also has versions for float, max(-2.3, -12.7 )is-2.3 int and long values mn smaller value of x andy min(2.3,12.7)1s2.3 y (this method also has versions for float, min(-2.3,-12.7)is-12.7 nt and long values p。w(x, raised to power y(xy) pow(2.0,7.0)is128.0 y (9.0,.5)1s3.0 sin( x trigonometric sine of x sin(0.0 )is 0.0 (r is in radians) sqrt(x)square root of x sqrt(900.0)is30.0 sqxt(9.0)1s3.0 tan( x) trigonometric tangent of (x is in radians) tan(0.0)is0.0 2021/2/24 北京理工大学计算机系2021/2/24 北京理工大学计算机系 6
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有