Method

# Log

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Returns the natural logarithm of the value specified. Use `System.Log<system.log>` to use the system message logging.

## Usage

``` xojo
result = Log(value)
```

| Part   | Type                             | Description                                  |
|--------|----------------------------------|----------------------------------------------|
| result | `Double</api/data_types/double>` | The natural logarithm of *value*.            |
| value  | `Double</api/data_types/double>` | The value you want the natural logarithm of. |

## Sample code

This example uses the <span class="title-ref">Log</span> function to return the natural logarithm of a number.

``` xojo
Var d As Double
d = Log(10) ' returns 2.3025851
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Exp</api/math/exp>` function.

</div>
