math ln

For math.

Returns the natural logarithm. Base: (math e).

Command Type

built-in

Signature

> math ln {flags}

Input/output types:

input output
number float
list<number> list<float>

Examples

Get the natural logarithm of e

> 2.7182818 | math ln | math round --precision 4
1.0

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.