Groups | Search | Server Info | Login | Register
Groups > comp.lang.tcl > #55625
| From | Don Porter <donald.porter@nist.gov> |
|---|---|
| Newsgroups | comp.lang.tcl |
| Subject | Re: Is there any way to specify an octal number in Tcl 9.0? |
| Date | 2026-03-25 08:30 -0400 |
| Organization | ACMD ITL NIST |
| Message-ID | <10q0ki0$1tthd$1@dont-email.me> (permalink) |
| References | <10pvkhe$1jjpc$1@dont-email.me> <yga8qbgqm89.fsf@akutech.de> |
On 3/25/26 05:42, Ralf Fassel wrote: > * 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. Worth mentioning that Tcl has understood the 0o prefix since Tcl 8.5.0, so your scripts can use it in the confidence that it will function in any installed Tcl you are likely to find. -- | Don Porter Applied and Computational Mathematics Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
Back to comp.lang.tcl | Previous | Next — Previous in thread | Next in thread | Find similar
Is there any way to specify an octal number in Tcl 9.0? Choosechee <choosechee@pm.me> - 2026-03-24 22:24 -0500
Re: Is there any way to specify an octal number in Tcl 9.0? Harald Oehlmann <wortkarg3@yahoo.com> - 2026-03-25 07:31 +0100
Re: Is there any way to specify an octal number in Tcl 9.0? Ralf Fassel <ralfixx@gmx.de> - 2026-03-25 10:42 +0100
Re: Is there any way to specify an octal number in Tcl 9.0? Don Porter <donald.porter@nist.gov> - 2026-03-25 08:30 -0400
Re: Is there any way to specify an octal number in Tcl 9.0? Choosechee <choosechee@pm.me> - 2026-03-25 10:32 -0500
csiph-web