Skip to content

Commit

Permalink
Add scientific notation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Parfitt authored and lpil committed Dec 26, 2022
1 parent e1ce3b3 commit 97b0a62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions book-src/tour/ints-and-floats.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@ Underscores can also be added to Floats for clarity.
```gleam
1_000_000.0 // One million
```

Scientific notation can also be used with Floats:

```gleam
1.01e3 // 1010
15.1e-3 // 0.0151
```

0 comments on commit 97b0a62

Please sign in to comment.