Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] Real Numbers representation in Tcl language
  • From: Roger Oberholtzer <roger@xxxxxx>
  • Date: Wed, 12 Apr 2006 16:52:23 +0200
  • Message-id: <200604121652.23638.roger@xxxxxx>
On Wednesday 12 April 2006 11:08, Maura Edeweiss Monville wrote:
> The strange behaviour undelying this issue is that every parameer is
> declared Real in C language. Tcl is used to build the GUI that allows the
> program users to alter the default values, if desired, in a friendly way.
> For some reson to me unknown (I've never used Tcl before) Tcl regards the
> Real numbers as Integers.... This is just my diagnosis .. I maight be
> wrong ...


Who declares them as real in C? Tcl or some other app?

If you enter a value as 1 (no decimal) it is assumed to be an integer. But if
you later enter 1.0, I think it changes to a double. At least from a Tcl
script.

--
Roger Oberholtzer
OPQ Systems AB


< Previous Next >