aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorD. Bohdan <dbohdan@dbohdan.com>2020-09-07 07:58:41 +0000
committerSteve Bennett <steveb@workware.net.au>2020-09-23 10:37:52 +1000
commitc95e5271b69c3f04d105607d1033733d5a3ac734 (patch)
tree0e01d4038f9c1f49bd012bf21a36a48bbf0c9ab7 /jim_tcl.txt
parentf5546ef728f3c2579250dbaa6f3c1cd98eb57dd8 (diff)
downloadjimtcl-c95e5271b69c3f04d105607d1033733d5a3ac734.zip
jimtcl-c95e5271b69c3f04d105607d1033733d5a3ac734.tar.gz
jimtcl-c95e5271b69c3f04d105607d1033733d5a3ac734.tar.bz2
core: implement 0d radix prefix for decimal
TIP 472
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 23c80cb..3b0a54e 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -719,9 +719,11 @@ White space may be used between the operands and operators and
parentheses; it is ignored by the expression processor.
Where possible, operands are interpreted as integer values.
-Integer values may be specified in decimal (the normal case) or in
-hexadecimal (if the first two characters of the operand are '0x').
-Note that Jim Tcl does *not* treat numbers with leading zeros as octal.
+Integer values may be specified in decimal (the default case that can
+be make explicit by prepending '0d' to the operand) or in binary, octal
+or hexadecimal (if the first two characters of the operand are '0b',
+'0o' or '0x' respectively). Note that Jim Tcl does *not* treat numbers
+with leading zeros as octal.
If an operand does not have one of the integer formats given
above, then it is treated as a floating-point number if that is