---
title: ln, ln1, log2
card_id: 57488
---

# ln, ln1, log2

```
the ln of [ph:number]
the ln1 of [ph:number]
the log2 of [ph:number]
```

Values returned:

`ln` returns a number equal to the base-e` `or natural logarithm of `[ph:number]`.

`ln1` returns a number equal to the natural logarithm of 1 + `[ph:number]`.

`ln2` returns a number equal to the base-2 logarithm of `[ph:number]`. 

## Examples

```
the ln of 2.718282 --returns 1
ln(2.718282)

ln1 of 1.718282 --returns 1
ln1(1.718282)

log2 of 1024 -- returns 10

log2 of 1024 - 512 -- returns -502
log2 of (1024 - 512)  -- returns 9
```

## Related Topics

* [exp, exp1, exp2](/HyperTalkReference/functions/exp-exp1-exp2)
