Skip to content

Commit

Permalink
Merge pull request #270 from AleoHQ/feat/underscore_nums
Browse files Browse the repository at this point in the history
  • Loading branch information
a h authored Sep 1, 2023
2 parents ae54004 + 2e433a2 commit eb1284f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/leo/03_language.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ and unsigned integer types `u8`, `u16`, `u32`, `u64`, `u128`.
let b: u8 = 1u8;
```

Underscores `_` can be used to separate digits in integer literals.

```leo
let b: u8 = 1_000_000u64;
```

:::info
Higher bit length integers generate more constraints in the circuit, which can slow down computation time.
:::
Expand Down

0 comments on commit eb1284f

Please sign in to comment.