Hi; 

One reason for using integer type is to save memory space, isn't it? 
However, whos() gives us 24 bytes as storage space for both integer and double 
data types.

var1 = int8(23); // 1 byte integer representation
whos -name var1
var2 = 23;
whos -name var2

In contrast, Matlab's whos() returns 1 byte for int8 data type and 8 bytes for 
double precision number. 

And another case, 
For values larger than the maximum value of a given integer data type (e.g. 127 
for int8) Scilab and Matlab return different values. 
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). 

Could anyone discuss on these different results returned by Scilab and Matalb? 
And specially the source of the differences? Thank you.

Regards,  
Mehran
_


                                          
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to