nushell/docs/commands/into-string.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

52 lines
840 B
Markdown

# into string
Convert value to string
## Usage
```shell
> into string ...args {flags}
```
## Parameters
* ...args: column paths to convert to string (for table input)
## Flags
* -h, --help: Display this help message
* -d, --decimals <integer>: decimal digits to which to round
## Examples
convert decimal to string and round to nearest integer
```shell
> echo 1.7 | into string -d 0
```
convert decimal to string
```shell
> echo 4.3 | into string
```
convert string to string
```shell
> echo '1234' | into string
```
convert boolean to string
```shell
> echo $true | into string
```
convert date to string
```shell
> date now | into string
```
convert filepath to string
```shell
> ls Cargo.toml | get name | into string
```
convert filesize to string
```shell
> ls Cargo.toml | get size | into string
```