> lang > log | ![]() |
| Documentation |
|
Value = Log ( Number AS Float )
Computes natural logarithm of a number i.e. logarithm to base e, where e is an irrational constant approximately equal to 2.71828. The number must be greater than zero. It cannot be negative or zero.
Note : Gambas has built-in functions to calculate base-2 and base-10 logarithm. To calculate base-n logarithms the following relation can be used:
| Message | Description |
|---|---|
| Mathematical error (#19) | Number is negative or zero. |