# log10

#### Table of Contents

## Overview

The **log10** function takes a **number** or **decimal** value as an argument, and returns the base 10 logarithmic value (log_{10}) of that number.

**Note:**

- The numerical value whose log
_{10}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 log This value has to be greater than 0. |

## Examples

number=81; info number.log10(); // returns 1.9084850188786497