Math对象属性
<!DOCTYPE html>标签:内置,console,log,JS,自然对数,为底,平方根,Math From: https://blog.51cto.com/u_15011997/5786083
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Math对象属性</title>
</head>
<body>
<script>
// 自然对数的基数e的值
console.log(Math.E); //2.718281828459045
//10为底的自然对数
console.log(Math.LN10); //2.302585092994046
//2为底的自然对数
console.log(Math.LN2); //0.6931471805599453
//以2为底的e的对数
console.log(Math.LOG2E); //1.4426950408889634
//以2为底的e的对数
console.log(Math.LOG10E); //0.4342944819032518
//π的值
console.log(Math.PI); //3.141592653589793
// 1/2的平方根
console.log(Math.SQRT1_2); //0.7071067811865476
// 2的平方根
console.log(Math.SQRT2); //1.4142135623730951
</script>
</body>
</html>