• C# Math类简介


     1 Math.abs()  //计算绝对值。  
     2 Math.acos() //计算反余弦值。  
     3 Math.asin() //计算反正弦值。  
     4 Math.atan() //计算反正切值。  
     5 Math.atan2() //计算从x 坐标轴到点的角度。  
     6 Math.ceil() //将数字向上舍入为最接近的整数。  
     7 Math.cos() //计算余弦值。  
     8 Math.exp() //计算指数值。  
     9 Math.floor() //将数字向下舍入为最接近的整数。  
    10 Math.log() //计算自然对数。  
    11 Math.max() //返回两个整数中较大的一个。  
    12 Math.min() //返回两个整数中较小的一个。  
    13 Math.pow() //计算x 的y 次方。  
    14 Math.random() //返回一个0.0 与1.0 之间的伪随机数。  
    15 Math.round() //四舍五入为最接近的整数。  
    16 Math.sin() //计算正弦值。  
    17 Math.sqrt() //计算平方根。  
    18 Math.tan() //计算正切值。  
    19 Math.E //欧拉(Euler) 常数,自然对数的底(大约为2.718)。  
    20 Math.LN2 //2 的自然对数(大约为0.693)。  
    21 Math.LOG2E // e 的以2 为底的对数(大约为1.442)。  
    22 Math.LN2 //10 的自然对数(大约为2.302)。  
    23 Math.LOG10E //e 的以10 为底的对数(大约为0.434)。  
    24 Math.PI  //一个圆的周长与其直径的比值(大约为3.14159)。  
    25 Math.SQRT1_2 //1/2 的平方根的倒数(大约为0.707)。  
    26 Math.SQRT2 2 //的平方根(大约为1.414)。
  • 相关阅读:
    异常学习笔记+打包+doc该软件包编译
    Meet Apache Wicket
    android 62 手机存储目录的划分
    android 61 logcat
    android 60 发送短信
    android 59 LinearLayout 线性布局
    LayoutInflater的inflate函数用法
    android 自定义Dialog背景透明及显示位置设置
    android 58 jvm和dvm的区别(Dalvil VM)
    Android如何创建背景透明的Dialog
  • 原文地址:https://www.cnblogs.com/TSPWater/p/2814144.html
Copyright © 2020-2023  润新知