Spec-Zone.ru › 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<number> number
list<duration> duration
list<filesize> filesize
list<any> any
range number
table record
record record

Examples

Find the maximum of a list of numbers.

> [-50 100 25] | math max
100

Find the maxima of the columns of a table.

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

Find the maximum of a list of dates.

> [2022-02-02 2022-12-30 2012-12-12] | math max
Fri, 30 Dec 2022 00:00:00 +0000 (3 years ago)

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API