into decimal for conversions

deprecated: convert data into a floating point number.

Signature

> into decimal ...rest

Parameters

  • ...rest: for a data structure input, convert data at the given cell paths

Input/output types:

inputoutput
boolnumber
intnumber
list<any>list<number>
numbernumber
recordrecord
stringnumber
tabletable

Examples

Convert string to float in table

> [[num]; ['5.01']] | into decimal num
╭───┬──────╮
│ # │ num  │
├───┼──────┤
│ 05.01 │
╰───┴──────╯

Convert string to float

> '1.345' | into decimal
1.345

Coerce list of ints and floats to float

> [4 -5.9] | into decimal
╭───┬───────╮
│ 04.00 │
│ 1-5.90 │
╰───┴───────╯

Convert boolean to float

> true | into decimal
1

Notes

Use into float instead