dos_log10 - dalefugier/DOSLib GitHub Wiki

Calculates the common (decadic) logarithm (base-10) of a number.

Syntax

(dos_log10 number)

Parameters

number

The positive real number for which you want the base-10 logarithm.

Returns

The base-10 logarithm of the number, if successful.

nil on error.

Example

Command: (dos_log10 86)
1.9345
Command: (dos_log10 10)
1
Command: (dos_log10 1e5)
5