forked from extern/nushell
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
33 lines
447 B
Markdown
33 lines
447 B
Markdown
---
|
|
title: into decimal
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
converts text into decimal
|
|
|
|
## Signature
|
|
|
|
```> into decimal ...rest```
|
|
|
|
## Parameters
|
|
|
|
- `...rest`: optionally convert text into decimal by column paths
|
|
|
|
## Examples
|
|
|
|
Convert string to integer in table
|
|
```shell
|
|
> [[num]; ['5.01']] | into decimal num
|
|
```
|
|
|
|
Convert string to integer
|
|
```shell
|
|
> '1.345' | into decimal
|
|
```
|
|
|
|
Convert decimal to integer
|
|
```shell
|
|
> '-5.9' | into decimal
|
|
```
|