math.log10

Full name
math.log10
Library
math
Syntax

math.log10(x)

Description

The math.log10 function returns the decimal logarithm of the number passed as an argument. This function is usually more accurate than math.log(x, 10).

Parameters
  • x: Number whose decimal logarithm is to be calculated.
Result

The math.log10 function returns a real number.

Examples

The decimal logarithm of two numbers is shown below:

math.log10(1000)

3.0

math.log10(300)

2.4771212547196626

Submitted by admin on Sun, 01/31/2021 - 22:25