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

stephane.mottelet at utc.fr stephane.mottelet at utc.fr
Wed Jun 5 23:46:30 CEST 2019


  Scilab 6.0.1 does it as follows:
   
   --> format(4); u=123.456
    u  = 
    
      1.0  D+02
   
  The display of Scilab 5.5.2 does not respect the format length  
either,  because " 123." has length 5 (blank sign +123 + dot)
   
  S.


Quoting Samuel Gougeon <sgougeon at free.fr>:

> Le 05/06/2019 à 21:57, stephane.mottelet at utc.fr a écrit :
>
>>  

  As MacOSX, Linux is not affected, this will help to solve this bug:

  Scilab 6.0.2 (Feb 14 2019, 10:11:47)

  --> OS_VERSION

   ans  =

   Linux 4.15.0-48-generic

  --> FORMAT(4); U=123.456

   u  = 

     1.D+02

   

  Are you in "v" format? This result looks like to be in "e" one, and  
anyway it does not comply with the required width.
On win7 with 5.5.2 we get in "v" format:
-->format(4); u=123.456
 u  =
   123. 
=> it does not switch to "e" format.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190605/4a4e8956/attachment.htm>


More information about the users mailing list