c# math

版权声明:仅供参考,请勿转载! https://blog.csdn.net/weixin_40948750/article/details/89396487

Math.abs() 计算绝对值。
Math.acos() 计算反余弦值。
Math.asin() 计算反正弦值。
Math.atan() 计算反正切值。
Math.atan2() 计算从x 坐标轴到点的角度。
Math.ceil() 将数字向上舍入为最接近的整数。
Math.cos() 计算余弦值。
Math.exp() 计算指数值。
Math.floor() 将数字向下舍入为最接近的整数。
Math.log() 计算自然对数。
Math.max() 返回两个整数中较大的一个。
Math.min() 返回两个整数中较小的一个。
Math.pow() 计算x 的y 次方。
Math.random() 返回一个0.0 与1.0 之间的伪随机数。
Math.round() 四舍五入为最接近的整数。
Math.sin() 计算正弦值。
Math.sqrt() 计算平方根。
Math.tan() 计算正切值。
Math.E 欧拉(Euler) 常数,自然对数的底(大约为2.718)。
Math.LN2 2 的自然对数(大约为0.693)。
Math.LOG2E e 的以2 为底的对数(大约为1.442)。
Math.LN2 10 的自然对数(大约为2.302)。
Math.LOG10E e 的以10 为底的对数(大约为0.434)。
Math.PI 一个圆的周长与其直径的比值(大约为3.14159)。
Math.SQRT1_2 1/2 的平方根的倒数(大约为0.707)。
Math.SQRT2 2 的平方根(大约为1.414)。](这里写自定义目录标题)

猜你喜欢

转载自blog.csdn.net/weixin_40948750/article/details/89396487