# LOG()

## Effect

Returns the natural logarithm (base e=2.718281884588) of a number.

## Syntax

`LOG(<Number>)`

## Parameter

`<Number>` must be greater than zero.

## Example

```basic
10 PRINT "The natural logarithm of 2 is ";LOG(2)
20 PRINT "The natural logarithm of 10 is ";LOG(10)
 
RUN
The natural logarithm of 2 is .69314718055993
The natural logarithm of 10 is 2.302585092994
```

## Related to

`EXP()`

## Compatibility

MSX-BASIC 1.0 or higher

## Source

Retrieved from "https://www.msx.org/wiki/LOG()"
