Math对象 


属性 

LN10 (10的自然对数) 

PI (3.1415926...) 

SQRT1_2 (1/2的平方根) 

方法 

abs(x) 返回x的绝对值 

acos(x) 返回x的arc cosine值 

asin(x) 返回x的arc sin值 

atan(x) 返回x的arc tangent值 

ceil(x) 返回大于等于x的最小整数 

cos(x) 返回x的cosine值 

exp(x) 返回e的x次方 

floor(x) 返回小于等于x的最大整数 

log(x) 返回x的 

max(x,y) 返回x,y中的大值 

min(x,y) 返回x,y中的小值 

pow(x,y) 返回x的y次方 

round(x) 舍入到最近整数,(小于或等于0.5小数舍去) 

sin(x) 返回x的sin值 

sqrt(x) 返回x的平方根 

tan(x) 返回x的tangent值

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-01-29
  • 2021-10-31
  • 2022-12-23
  • 2021-10-13
  • 2021-07-29
猜你喜欢
  • 2021-05-22
  • 2021-07-12
  • 2021-07-11
  • 2022-12-23
  • 2021-08-18
  • 2021-06-10
  • 2022-01-15
相关资源
相似解决方案