[Scilab-users] Overflow convention for integer types

Stéphane Mottelet stephane.mottelet at utc.fr
Fri Feb 23 13:45:54 CET 2018


Hello,

I would like to point out the conventions used by Scilab and Matlab when 
an integer number is subject to overflow:

Scilab 6.0.1:

--> uint8(255)+1
  ans  =

   0

Matlab R2017b

 >> uint8(255)+1

ans =

   uint8

    255

Do you see any reason in favor of one of each ?

S.


-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet




More information about the users mailing list