<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi; <br><br>One reason for using integer type is to save memory space, isn't it? <br>However, whos() gives us 24 bytes as storage space for both integer and double data types.<br><br>var1 = int8(23); // 1 byte integer representation<br>whos -name var1<br>var2 = 23;<br>whos -name var2<br><br>In contrast, Matlab's whos() returns 1 byte for int8 data type and 8 bytes for double precision number. <br><br>And another case, <br>For values larger than the maximum value of a given integer data type (e.g. 127 for int8) Scilab and Matlab return different values. <br>For example, Scilab's result for int8(200) is -56 but Matlab's result will be 127 (the largest value which can be stored in this data type). <br><br>Could anyone discuss on these different results returned by Scilab and Matalb? And specially the source of the differences? Thank you.<br><br>Regards,  <br>Mehran<br>_<br><br></div>
                                          </div></body>
</html>