W3cubDocs

/Nushell

math max for math

Returns the maximum of a list of values, or of columns in a table.

Signature

> math max {flags}

Input/output types:

input output
list<any> any
table record

Examples

Find the maximum of list of numbers

> [-5010025] |math max
100

Find the maxima of the columns of a table

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

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