Skip to main content

math.log10(value)

Returns the base 10 logarithm of a given value

Availability

Device + Agent

Parameters

Name Type Description
value Float/integer Any numerical value

Returns

Float — the base 10 logarithm

Description

This function returns the common logarithm of the passed value. This is the power to which base 10 must be raised to generate the passed value. The anti-logarithm can be calculated using the math.pow() function:

local antiLog = math.pow(10, log);

Example Code