summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2017-05-27 22:17:21 (GMT)
committergriffin <briang42@easystreet.net>2017-05-27 22:17:21 (GMT)
commit5badb6535fd037244cae95a25e9790c7dae3c7c8 (patch)
tree5d2ff7f366eb483fd5c185c41bc9c45f070cbff1 /doc
parentcf0cf6ad90055ae80f8ed7ec6b87d145d31cfcff (diff)
downloadtcl-5badb6535fd037244cae95a25e9790c7dae3c7c8.zip
tcl-5badb6535fd037244cae95a25e9790c7dae3c7c8.tar.gz
tcl-5badb6535fd037244cae95a25e9790c7dae3c7c8.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