| Ticket UUID: | 1813164 | ||
| Title: | entier() not mentioned in type conversion of expr | ||
| Type: | Bug | Created on: | 2007-10-14 11:49:40 |
| Submitter: | mic42 | Assigned to: | tallniel |
| Subsystem: | 75. Tutorial | Severity: | |
| Priority: | 8 | Last modified: | 2008-03-20 23:40:19 |
| Status: | Closed | Closed by: | tallniel |
| Resolution: | Fixed | Closed on: | 2008-03-20 16:40:19 |
| Version: | None | ||
| Description: | ||||
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>
| ||||
| User Comments: | ||||
dkf added on 2007-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. tallniel added on 2008-03-20 23:40:19:
Logged In: YES user_id=102050 Originator: NO Fix applied to current CVS HEAD, with minor adjustments. | ||||
