W3cubDocs

/Nushell

math min for math

Finds the minimum within a list of values or tables.

Signature

> math min {flags}

Input/output types:

input output
list<any> any
table record

Examples

Compute the minimum of a list of numbers

> [-5010025] |math min
-50

Compute the minima of the columns of a table

> [{a:1b:3} {a:2b:-1}] |math min
╭───┬────╮
a1
b-1
╰───┴────╯

Find the minimum of a list of arbitrary values (Warning: Weird)

> [-50'hello'true] |math min
true

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/math_min.html