Atom

math.log10()

Computes the base-ten logarithm.

Signature

math.log10(x)

Parameters

One number.

Returns

f64, with negative infinity at zero and NaN for negative inputs.

Behavior

Uses the C math operation.

Errors

Requires a number.

Example

Atom
use math
assert(math.log10(100) == 2)