Skip to content

Commit

Permalink
Update types_of_data.md (#1117)
Browse files Browse the repository at this point in the history
Update Decimals with `into float` change
  • Loading branch information
hatunike authored Oct 21, 2023
1 parent 7108e26 commit 7239ce8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions book/types_of_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ You can parse a string into an integer with the [`into int`](/commands/docs/into
> "-5" | into int
```

## Decimals
## Decimals (floats)

Decimal numbers are numbers with some fractional component. Examples include 1.5, 2.0, and 15.333.
You can cast a string into a Decimal with the [`into decimal`](/commands/docs/into_decimal.md) command
You can cast a string into a Float with the [`into float`](/commands/docs/into_float.md) command

```nu
> "1.2" | into decimal
> "1.2" | into float
```

## Strings
Expand Down

0 comments on commit 7239ce8

Please sign in to comment.