So, in Tcl 8.6, a number starting with 0 being interpreted as an octal number was removed. From my understanding, there is now not a way to
specify a number that will be interpreted as octal. Is this correct? I'm trying to write something like JSON, but based on Tcl instead of
JavaScript, so I need to know exactly what number formats are supported.
* Choosechee <choosechee@pm.me>
| [...] so I need to know exactly what number formats are supported.
See
https://www.tcl-lang.org/man/tcl9.0/TclCmd/expr.html#M6
[expr] manpage, subsection "Operands/numeric value"
numeric value
Either integer or floating-point. The first two characters of an
integer may also be 0d for decimal, 0b for binary, 0o for octal
or 0x for hexadecimal.
So, in Tcl 8.6, a number starting with 0 being interpreted as an octal number was removed. From my understanding, there is now not a way toThanks to everyone for the help!
specify a number that will be interpreted as octal. Is this correct? I'm trying to write something like JSON, but based on Tcl instead of
JavaScript, so I need to know exactly what number formats are supported.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,124 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 24:53:17 |
| Calls: | 14,394 |
| Calls today: | 3 |
| Files: | 186,389 |
| D/L today: |
6,736 files (1,708M bytes) |
| Messages: | 2,545,016 |
| Posted today: | 1 |