Re: What value can cause this error?

Liste des GroupesRevenir à cl tcl 
Sujet : Re: What value can cause this error?
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tcl
Date : 18. Sep 2024, 01:13:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vcd5ve$3oiv0$1@dont-email.me>
References : 1 2 3
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
alexandru <alexandru.dadalau@meshparts.de> wrote:
Actually yes, I'm sure.
I have the errorInfo that shows the stack of procedure calls.
The procedure is called with "decimals" equal to 6.

A very large number in val can also trigger the same error, even with
decimals at 6:

    $ rlwrap tclsh
    % set decimals 6
    6
    % set val 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
    999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
    % expr {round($val*(10.0**($decimals+3)))/(10.0**$decimals)}
    integer value too large to represent
    %

So if you are certian decimals is 6, then a very large number is
ending up in val somehow.

Date Sujet#  Auteur
17 Sep 24 * What value can cause this error?7alexandru
17 Sep 24 `* Re: What value can cause this error?6Rich
18 Sep 24  `* Re: What value can cause this error?5alexandru
18 Sep 24   `* Re: What value can cause this error?4Rich
18 Sep 24    `* Re: What value can cause this error?3alexandru
18 Sep 24     `* Re: What value can cause this error?2Christian Gollwitzer
20 Sep 24      `- Re: What value can cause this error?1alexandru

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal