nushell/docs/commands/into-int.md
JT bff81f24aa
Autogenerate missing docs (#3514)
* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
2021-05-30 12:57:04 +12:00

672 B

into int

Convert value to integer

Usage

> into int ...args {flags} 

Parameters

  • ...args: column paths to convert to int (for table input)

Flags

  • -h, --help: Display this help message

Examples

Convert string to integer in table

> echo [[num]; ['-5'] [4] [1.5]] | into int num

Convert string to integer

> echo '2' | into int

Convert decimal to integer

> echo 5.9 | into int

Convert decimal string to integer

> echo '5.9' | into int

Convert file size to integer

> echo 4KB | into int

Convert bool to integer

> echo $false $true | into int