[Scilab-users] A possible bug with format(width)

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Jun 5 16:55:16 CEST 2019


Le 05/06/2019 à 16:38, Izabela Wójcik-Grząba a écrit :
> Hello,
>
> When Scilab 6.0.2 became available I reported a crash while running my 
> program which worked fine on previous version:
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Scilab-crash-on-a-Windows-server-td4039065.html#a4039120 
>
> I managed to find out that the problem was about "format" which was 
> changed in the latest version of Scilab and wasn't working properly 
> with some numbers imported from Excel. Fortunately I edited my program 
> and now it works fine.
> But I am still wondering if it's fine that Scilab crashes when width 
> of number in format is smaller than displayed number, for example:
>
> u=123.456;
> format(8)
> u  =  123.456
>
> format(7)
> u  =  123.46
>
> format(6)
> u  =  123.5
>
> format(5)
> u  =  123.
>
> With format(4) and attempt to display a variable u Scilab stops 
> working. Does everyone have such behaviour and isn't it a bug?
>
Under Scilab 6.0.2, MacOSX :

--> u=123.456;

--> format(4)

--> u
  u  =

    1.D+02

> Kind regards,
> Iza
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 
>


-- 
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