mirror of
https://github.com/nushell/nushell.git
synced 2024-12-03 05:44:09 +01:00
1.0 KiB
1.0 KiB
title | layout | version |
---|---|---|
into string | command | 0.59.1 |
Convert value to string
Signature
> into string ...rest --decimals
Parameters
...rest
: column paths to convert to string (for table input)--decimals {int}
: decimal digits to which to round
Examples
convert decimal to string and round to nearest integer
> 1.7 | into string -d 0
convert decimal to string
> 1.7 | into string -d 1
convert decimal to string and limit to 2 decimals
> 1.734 | into string -d 2
try to convert decimal to string and provide negative decimal points
> 1.734 | into string -d -2
convert decimal to string
> 4.3 | into string
convert string to string
> '1234' | into string
convert boolean to string
> true | into string
convert date to string
> date now | into string
convert filepath to string
> ls Cargo.toml | get name | into string
convert filesize to string
> ls Cargo.toml | get size | into string