summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgriffin <brian_griffin@mentor.com>2017-05-27 22:17:21 (GMT)
committergriffin <brian_griffin@mentor.com>2017-05-27 22:17:21 (GMT)
commit7aab6826d8c0c63f62a1d8a8c42d514d5559e420 (patch)
tree5d2ff7f366eb483fd5c185c41bc9c45f070cbff1 /doc
parent4f1a584c9cab2b4579a23077b1f9fda6834ab54c (diff)
downloadtcl-7aab6826d8c0c63f62a1d8a8c42d514d5559e420.zip
tcl-7aab6826d8c0c63f62a1d8a8c42d514d5559e420.tar.gz
tcl-7aab6826d8c0c63f62a1d8a8c42d514d5559e420.tar.bz2
Implement proposed 0d decimal radix prefix to compliment 0x,0b,0o.
Diffstat (limited to 'doc')
-rw-r--r--doc/GetInt.37
-rw-r--r--doc/expr.n2
2 files changed, 6 insertions, 3 deletions
diff --git a/doc/GetInt.3 b/doc/GetInt.3
index 5a3304a..8d7a4d0 100644
--- a/doc/GetInt.3
+++ b/doc/GetInt.3
@@ -56,6 +56,9 @@ followed by white space. If the first two characters of \fIsrc\fR
after the optional white space and sign are
.QW \fB0x\fR
then \fIsrc\fR is expected to be in hexadecimal form; otherwise,
+if the first such characters are
+.QW \fB0d\fR
+then \fIsrc\fR is expected to be in decimal form; otherwise,
if the first such characters are
.QW \fB0o\fR
then \fIsrc\fR is expected to be in octal form; otherwise,
@@ -65,8 +68,8 @@ then \fIsrc\fR is expected to be in binary form; otherwise,
if the first such character is
.QW \fB0\fR
then \fIsrc\fR
-is expected to be in octal form; otherwise, \fIsrc\fR is
-expected to be in decimal form.
+is expected to be in octal form; otherwise, \fIsrc\fR
+is expected to be in decimal form.
.PP
\fBTcl_GetDouble\fR expects \fIsrc\fR to consist of a floating-point
number, which is: white space; a sign; a sequence of digits; a
diff --git a/doc/expr.n b/doc/expr.n
index cbb2395..3cd6d16 100644
--- a/doc/expr.n
+++ b/doc/expr.n
@@ -46,7 +46,7 @@ value is the form produced by the \fB%g\fR format specifier of Tcl's
An expression consists of a combination of operands, operators, parentheses and
commas, possibly with whitespace between any of these elements, which is
ignored.
-An integer operand may be specified in decimal, binary
+An integer operand may be specified in decimal (the optional first two characters are \fB0d\fR), binary
(the first two characters are \fB0b\fR), octal
(the first two characters are \fB0o\fR), or hexadecimal
(the first two characters are \fB0x\fR) form. For