summaryrefslogtreecommitdiff
path: root/docs/src/reference
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-04 15:22:48 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-04 15:46:09 +0200
commit570c528b3e4e41af2bb8ec0cf091e52dd50db13a (patch)
tree02ed402ad10741ae70fb9dab03ce735d35eac2a8 /docs/src/reference
parentf738d89ff2de20f3293a8e413160b7ab48cf593a (diff)
Integers with different bases
Diffstat (limited to 'docs/src/reference')
-rw-r--r--docs/src/reference/types.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md
index c323ab41..312ba7c0 100644
--- a/docs/src/reference/types.md
+++ b/docs/src/reference/types.md
@@ -43,11 +43,18 @@ The number can be negative, zero, or positive. As Typst uses 64 bits to store
integers, integers cannot be smaller than `{-9223372036854775808}` or larger than
`{9223372036854775807}`.
+The number can also be specified as hexadecimal, octal, or binary by starting it
+with a zero followed by either `x`, `o`, or `b`.
+
## Example
```example
#(1 + 2) \
#(2 - 5) \
#(3 + 4 < 8)
+
+#0xff \
+#0o10 \
+#0b1001
```
# Float