mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 10:53:57 +01:00
bff81f24aa
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
607 B
607 B
str to-int
converts text into integer
Usage
> str to-int ...args {flags}
Parameters
- ...args: optionally convert text into integer by column paths
Flags
- -h, --help: Display this help message
- -r, --radix : radix of integer
Examples
Convert to an integer
> echo '255' | str to-int
Convert str column to an integer
> echo [['count']; ['255']] | str to-int count | get count
Convert to integer from binary
> echo '1101' | str to-int -r 2
Convert to integer from hex
> echo 'FF' | str to-int -r 16