mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:15:00 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
36
docs/commands/str-to-int.md
Normal file
36
docs/commands/str-to-int.md
Normal file
@ -0,0 +1,36 @@
|
||||
# str to-int
|
||||
converts text into integer
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> str to-int ...args {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* ...args: optionally convert text into integer by column paths
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -r, --radix <number>: radix of integer
|
||||
|
||||
## Examples
|
||||
Convert to an integer
|
||||
```shell
|
||||
> echo '255' | str to-int
|
||||
```
|
||||
|
||||
Convert str column to an integer
|
||||
```shell
|
||||
> echo [['count']; ['255']] | str to-int count | get count
|
||||
```
|
||||
|
||||
Convert to integer from binary
|
||||
```shell
|
||||
> echo '1101' | str to-int -r 2
|
||||
```
|
||||
|
||||
Convert to integer from hex
|
||||
```shell
|
||||
> echo 'FF' | str to-int -r 16
|
||||
```
|
||||
|
Reference in New Issue
Block a user