Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-03-20
23:40 • Closed ticket [1813164fff]: entier() not mentioned in type conversion of expr</i... artifact: b3430ac981 user: tallniel
20:24 • Ticket [1813164fff]: 1 change artifact: 3e7bea86ff user: dgp
2007-11-01
20:53 • Ticket [1813164fff]: 5 changes artifact: 5f629c1e23 user: dkf
2007-10-31
23:54 • Ticket [1813164fff]: 1 change artifact: 5fa9be2d27 user: dgp
2007-10-14
11:49 • New ticket [1813164fff]. artifact: 3ed7020fd6 user: mic42

entier() not mentioned in type conversion of expr

Closed / Fixed1813164fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-10-14 11:49:40
In the type conversion section of Tcl6.html the new entier() function is missing.

This snippet should fix it:
<pre>
double int wide bignum
</pre>

    <ul>
    <li>
<code class="keyword">double()</code> converts a number to a
floating-point number.
    </li>
    <li>
<code class="keyword">int()</code> converts a number to an
ordinary integer number (by <i>truncating</i> the decimal part).
    </li>
    <li>
<code class="keyword">wide()</code> converts a number to a
so-called wide integer number (these numbers have a larger range).
    </li>
    <li>
<code class="keyword">entier()</code> coerces a number to an
integer of appropriate size to hold it without truncation. 
        This might return the same as int() or wide() or an integer 
        of arbitrary size.
    </ul>
    <p>
dgp Ticket [1813164fff]: 1 change [History diff]2007-10-31 23:54:18
dkfplain2007-11-01 20:53:07
Logged In: YES 
user_id=79902
Originator: NO

If the tutorial is not being shipped with 8.5.0, this isn't a blocker.
dgp Ticket [1813164fff]: 1 change [History diff]2008-03-20 20:24:23
tallnielplain2008-03-20 23:40:19
Logged In: YES 
user_id=102050
Originator: NO

Fix applied to current CVS HEAD, with minor adjustments.
Log in (anonymous is fine) to add a comment.