<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>This behavior (swith to "e") is logical. For example, with
      format("v",10), which is the default, 123456789 cannot be
      displayed in "v" mode with 10 characters. Hence, the only solution
      is to switch to "e" mode:</p>
    <p>--> format("v",10)<br>
      <br>
      --> 123456789<br>
       ans  =<br>
      <br>
         1.235D+08</p>
    <p>Of course, you cannot use less than 7 characters (3 chars for the
      signed mantissa and the dot and 4 chars for the exponent):</p>
    <p>--> format("v",8)<br>
      <br>
      --> 123456789<br>
       ans  =<br>
      <br>
         1.2D+08<br>
      <br>
      <br>
      --> format("v",7)<br>
      <br>
      --> 123456789<br>
       ans  =<br>
      <br>
         1.D+08<br>
      <br>
      <br>
      --> format("v",6)<br>
      <br>
      --> 123456789<br>
       ans  =<br>
      <br>
         1.D+08<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 05/06/2019 à 23:46,
      <a class="moz-txt-link-abbreviated" href="mailto:stephane.mottelet@utc.fr">stephane.mottelet@utc.fr</a> a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:20190605234630.Horde.MqXPJG47LXZzpDl_m4NQjnQ@webmail.utc.fr">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <title></title>
      <div>Scilab 6.0.1 does it as follows:</div>
      <div> </div>
      <div> --> format(4); u=123.456</div>
      <div>  u  = </div>
      <div>  </div>
      <div>    1.0  D+02</div>
      <div> </div>
      <div>The display of Scilab 5.5.2 does not respect the format
        length either,  because " 123." has length 5 (blank sign +123 +
        dot)</div>
      <div> </div>
      <div>S.</div>
      <p><br>
        Quoting Samuel Gougeon <<a href="mailto:sgougeon@free.fr"
          moz-do-not-send="true">sgougeon@free.fr</a>>:</p>
      <blockquote style="border-left:2px solid
        blue;margin-left:2px;padding-left:12px;" type="cite">
        <div class="moz-cite-prefix">Le 05/06/2019 à 21:57, <a
            class="moz-txt-link-abbreviated"
            href="mailto:stephane.mottelet@utc.fr"
            moz-do-not-send="true">stephane.mottelet@utc.fr</a> a
          écrit :</div>
        <blockquote
          cite="mid:20190605215709.Horde.-Ts_7pBtz5hU9hCEgjD3kWK@webmail.utc.fr"
          type="cite">
          <p> </p>
        </blockquote>
      </blockquote>
      <p>As MacOSX, Linux is not affected, this will help to solve this
        bug:</p>
      <p class="p1"><span class="s1">Scilab 6.0.2 (Feb 14 2019,
          10:11:47)</span></p>
      <p class="p1"><span class="s1">--> <b>OS_Version</b></span></p>
      <p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>ans<span
            class="Apple-converted-space"> </span> =</span></p>
      <p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>Linux
          4.15.0-48-generic</span></p>
      <p class="p1"><span class="s1">--> <b>format(4); u=123.456</b></span></p>
      <p class="p1"><span class="s1"><span class="Apple-converted-space"> </span>u<span
            class="Apple-converted-space"> </span> =<span
            class="Apple-converted-space"> </span></span></p>
      <p class="p1"><span class="s1"><span class="Apple-converted-space">  </span>
          1.D+02</span></p>
      <p> </p>
      <p>Are you in "v" format? This result looks like to be in "e" one,
        and anyway it does not comply with the required width.<br>
        On win7 with 5.5.2 we get in "v" format:<br>
        <tt>-->format(4); u=123.456</tt><br>
        <tt> u  =</tt><br>
        <tt>   123. </tt><br>
        => it does not switch to "e" format.<br>
         </p>
      <p><br>
        <br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
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
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a></pre>
  </body>
</html>