<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 04/01/2014 23:31, Stephan
Schreckenbach a écrit :<br>
</div>
<blockquote
cite="mid:1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif;font-size:12pt">.../...
<div>Since scilab processes all data as variant, how much memory
is required for each constant or variable, being string,
integer or double?<br>
.../...<br>
</div>
</div>
</blockquote>
roughly:<br>
string : 4 bytes per character (UTF-8 encoded)<br>
integer: (u)int8 : 1 byte (u)int16 : 2 bytes (u)int32: 4 bytes<br>
double: 8 bytes<br>
boolean: 4 bytes<br>
+ few other bytes to encode the format ( vector, matrix,
hypermatrix...)<br>
<br>
</body>
</html>