summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/constants.conf b/db/constants.conf
index b2bc94516..1770ab06f 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -40,6 +40,13 @@ constants_db: {
hexadecimal: 0x1337 // prefix: 0x
octal: 0o1337 // prefix: 0o
binary: 0b101101 // prefix: 0b
+
+ Underscores can also be used as visual separators for digit grouping purposes:
+ 2_147_483_647
+ 0x7FFF_FFFF
+
+ Keep in mind that number literals cannot start or end with a separator and no
+ more than one separator can be used in a row (so 12_3___456 is illegal).
**************************************************************************/
comment__: "Weekdays"