blob: 2e336c0a2286994a3629ea5a788bb62fd7c380a9 [file] [log] [blame] [view]
[TOC](Readme.md) [Prev](comments.md) [Next](stringlit.md)
# Number Literals
CUE adds a variety of sugar for writing numbers.
<!-- CUE editor -->
```
[
1_234, // 1234
5M, // 5_000_000
1.5Gi, // 1_610_612_736
0x1000_0000, // 268_435_456
]
```
<!-- JSON result -->
```json
[
1234,
5000000,
1610612736,
268435456
]
```