Skip to content

Commit

Permalink
feat[docs]: Add Infinity, NaN, and boolean literals.
Browse files Browse the repository at this point in the history
  • Loading branch information
watcol committed Dec 4, 2021
1 parent 7d53ea7 commit 02b605e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,17 @@ float6 = -2E+4 # same as -20000.0
float7 = 5_000.000_003 # same as 5000.000003
```
Use `@inf` and `@nan` to express positive infinity and "Not a number."
```toml
float8 = @inf # Positive Infinity
float9 = -@inf # Negative Infinity
float10 = @nan # Not a number.
```
#### Boolean
Boolean is a value, either "true" or "false". Booleans has no literal
notation, but can be accessed as [master key](#master-key) constants: `@true`
and `@false`.
Boolean is a value, either "true" or "false". Use `@true` and `@false`
to express them. (`true` and `false` are keys.)
```toml
bool1 = @true
Expand Down

0 comments on commit 02b605e

Please sign in to comment.