คุณสมบัติ Math.LN10 แทนค่า ลอการิทึมธรรมชาติของ 10 (ln 10 ≈ 2.302585092994046)
ไวยากรณ์
Math.LN10
ตัวอย่าง
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var data = Math.LN10; document.write(data); </script> </body> </html>
ผลลัพธ์
2.302585092994046
ความสัมพันธ์:
Math.LN10 = Math.log(10)Math.LOG10E = 1 / Math.LN10- ใช้แปลง log₁₀(x) = ln(x) / ln(10)
การประยุกต์ใช้:
- การคำนวณ pH, Decibel, Richter scale
- การแปลงหน่วยลอการิทึมฐานต่างๆ
- อัลกอริทึมคอมพิวเตอร์ (complexity analysis)