Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

Math.log10()

2 tags 1 category

The Math.log10() static method returns the base 10 logarithm of a number. That is

∀x>0,𝙼𝚊𝚝𝚑.𝚕𝚘𝚐𝟷𝟶(𝚡)=log10(x)=the unique y such that 10y=xforall x > 0,;mathtt{operatorname{Math.log10}(x)} = log_{10}(x) = text{the unique } y text{ such that } 10^y = x

Because log10() is a static method of Math, you always use it as Math.log10(), rather than as a method of a Math object you created (Math is not a constructor).

This function is the equivalent of Math.log(x) / Math.log(10). For log10(e), use the constant Math.LOG10E, which is 1 / Math.LN10.

Syntax example: Math.log10(x)

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…