Math.log10
Math.log10
Function
Commonly used logarithms. Returns the base 10 logarithm of value.
Syntax
Math.log10(value)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Number | is | None | a true number. |
Return value
| Type | Description |
|---|---|
| Int/Float | Returns the base 10 logarithm of value. An Int is returned for integer results, and a Float for non-integer or non-finite results. |
Example
result = Math.log10(100) // Output: 2 print result
Notes
- Integer results return Int.