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 <[email protected]>
| [...] 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,114 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 492508:39:10 |
| Calls: | 14,267 |
| Calls today: | 3 |
| Files: | 186,320 |
| D/L today: |
20,163 files (6,244M bytes) |
| Messages: | 2,518,305 |