Groups | Search | Server Info | Login | Register


Groups > comp.lang.tcl > #55624

Re: Is there any way to specify an octal number in Tcl 9.0?

From Ralf Fassel <ralfixx@gmx.de>
Newsgroups comp.lang.tcl
Subject Re: Is there any way to specify an octal number in Tcl 9.0?
Date 2026-03-25 10:42 +0100
Message-ID <yga8qbgqm89.fsf@akutech.de> (permalink)
References <10pvkhe$1jjpc$1@dont-email.me>

Show all headers | View raw


* 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. 

        A floating-point number may be take any of several common
        decimal formats, and may use the decimal point ., e or E for
        scientific notation, and the sign characters + and -.
        [...]

HTH
R'

Back to comp.lang.tcl | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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