Skip to content
Vašek edited this page Jan 13, 2019 · 4 revisions

log10

This function returns the log base 10 of n

Syntax:

log10(n)
Argument Description
double n The input value

Returns: double

Description:

The function asks: "How many times number 10 must be powered by to equal n?" For example, function log10(1000) will return 3, Because 10x10x10 = 1000.

Example:

double value;
value = log10(100);

This code will set value to 2.

Example 2:

double value;
value = log10(0.2);

This code will set value to -0,69897.

Back to number_functions

Clone this wiki locally