log10
Table of Contents
Overview
The log10 function takes a number or decimal value as an argument, and returns the base 10 logarithmic value (log10) of that number.
Note:
- The numerical value whose log10 value needs to be determined, should be greater than 0. If it is less than or equal to zero, a null is returned.
Return Type
- DECIMAL
Syntax
<variable> = <number>.log10();
(OR)
<variable> = log10(<number>);
where,
Parameter | Data type | Description |
<variable> | DECIMAL | Variable which will contain the returned value |
<number> | DECIMAL/NUMBER | The number whose log10 value needs to be determined. This value has to be greater than 0. |
Examples
number=81; info number.log10(); // returns 1.9084850188786497