dos_log - dalefugier/DOSLib GitHub Wiki
Calculates the natural logarithm of a number. Natural logarithms are based on the constant e, or 2.71828182845904523536. Note, this function is the inverse of the dos_exp function.
Syntax
(dos_log number)
Parameters
number
The positive number for which you want the natural logarithm.
Returns
The natural logarithm of the number, if successful.
nil on error.
Example
Command: (dos_log 86)
4.45435
Command: (dos_log 2.7182818)
1.0
Command: (dos_log (dos_exp 3))
3