diff options
author | griffin <briang42@easystreet.net> | 2017-05-27 22:17:21 (GMT) |
---|---|---|
committer | griffin <briang42@easystreet.net> | 2017-05-27 22:17:21 (GMT) |
commit | 5badb6535fd037244cae95a25e9790c7dae3c7c8 (patch) | |
tree | 5d2ff7f366eb483fd5c185c41bc9c45f070cbff1 /doc | |
parent | cf0cf6ad90055ae80f8ed7ec6b87d145d31cfcff (diff) | |
download | tcl-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.3 | 7 | ||||
-rw-r--r-- | doc/expr.n | 2 |
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 @@ -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 |