<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I wonder, why my request does not get published.</p>
<p>Regards Dieter<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Weitergeleitete Nachricht --------
<table class="moz-email-headers-table" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Betreff:
</th>
<td>Size of LONGINT in ETHOberon</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Datum: </th>
<td>Mon, 11 Feb 2019 12:55:30 +0100</td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">Von: </th>
<td>Dieter <a class="moz-txt-link-rfc2396E" href="mailto:d.gloetzel@web.de"><d.gloetzel@web.de></a></td>
</tr>
<tr>
<th valign="BASELINE" nowrap="nowrap" align="RIGHT">An: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:oberon@lists.inf.ethz.ch">oberon@lists.inf.ethz.ch</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>According to NW the size of LONGINT is +/- 2147483647<br>
</p>
<p><img src="cid:part1.6BDADA91.322E2EBA@web.de" alt="" class=""></p>
<p><br>
</p>
<p>However when I run</p>
<p>==================================================<br>
</p>
<p>MODULE powerof2;<br>
IMPORT Out;<br>
PROCEDURE power*;<br>
VAR i : INTEGER; value : LONGINT;<br>
BEGIN<br>
i := 0; value := 1;<br>
WHILE i < 32 DO<br>
Out.Ln(); Out.Int(i,5); Out.Int(value,20);<br>
INC(i); value := 2 * value;<br>
END;<br>
END power;<br>
BEGIN<br>
END powerof2.power</p>
<p>===================================================</p>
<p> I get</p>
<p>===================================================</p>
<p> 0 1<br>
1 2<br>
2 4<br>
3 8<br>
4 16<br>
5 32<br>
6 64<br>
7 128<br>
8 256<br>
9 512<br>
10 1024<br>
11 2048<br>
12 4096<br>
13 8192<br>
14 16384<br>
15 32768<br>
16 65536<br>
17 131072<br>
18 262144<br>
19 524288<br>
20 1048576<br>
21 2097152<br>
22 4194304<br>
23 8388608<br>
24 16777216<br>
25 33554432<br>
26 67108864<br>
27 134217728<br>
28 268435456<br>
29 536870912<br>
30 1073741824<br>
31 -2147483648</p>
<p>=============================</p>
<p>Has anybody got an explanation?</p>
<p>Thanky and bye Dieter<br>
</p>
</div>
</body>
</html>