Syntax:
returned_word_variable = Loge ( word_value )Command Availability:
Available on all microcontrollers.
Explanation:
The Loge command returns the base-e (natural) logarithm, to 2 decimal places.
The values returned are fixed-point numbers, with two decimal places assumed on the right — or, if you prefer, think of the values as being scaled up by 100.
Example:
dim log_value as word
log_value = loge ( 10 ) ' <<< the Loge instruction -- returns 230, equating to 2.30Key line: loge ( 10 ) — returns the natural logarithm of 10 as a fixed-point word, 230, representing 2.30.
Supported in <MATHS.H>
See Also:
- Logarithms — overview of the log family of functions
- Log2 — base-2 logarithm
- Log10 — base-10 logarithm

