[Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed
Samuel Gougeon
sgougeon at free.fr
Wed Sep 19 12:45:46 CEST 2018
Le 19/09/2018 à 12:25, Samuel Gougeon a écrit :
> Le 19/09/2018 à 12:02, Stéphane Mottelet a écrit :
>> Le 19/09/2018 à 11:46, Samuel Gougeon a écrit :
>> .../...
>>>
>>> At first sight, Octave's result does not look more consistent than
>>> Scilab's one.
>>> But following its own ceiling/flooring rules, yet it is consistent.
>> What is puzzling is that Scilab implements a *mix* of rules comming
>> from different software. I am wondering about the true reason:
>>
>> Scilab:
>>
>> --> int8(-128)/int8(0)
>> ans =
>>
>> -128
>
> This is in Scilab 6. In Scilab 6, int8(-%inf) has been set to the int8
> floor, and int8(%inf) to the int8 ceil. It is more consistent than the
> 5.5 behavior (and is now documented in the 6.0 branch).
Here is the Scilab 6.0.0 changelog in the int8 ... iuint64 help page for
6.0.2:
Would you prefer fixing int32(%inf) in order to keep all answers to 0:
this would avoid any saturating behavior for the infinite values as for
finite ones ; or these new settings?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180919/1884ccd0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfonagcebphepcae.png
Type: image/png
Size: 4823 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20180919/1884ccd0/attachment.png>
More information about the users
mailing list