fmt
for conversions> fmt {flags}
input | output |
---|---|
number | record |
Get a record containing multiple formats for the number 42
>42|fmt
╭──────────┬──────────╮
│binary│0b101010│
│debug│42│
│display│42│
│lowerexp│4.2e1│
│lowerhex│0x2a│
│octal│0o52│
│upperexp│4.2E1│
│upperhex│0x2A│
╰──────────┴──────────╯
Tips: Command fmt
was not included in the official binaries by default, you have to build it with --features=extra
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/fmt.html