<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 12/09/2019 à 18:55, Stéphane
      Mottelet a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:5ca07ea9-bf8d-dd92-958c-6abac0ce5e1a@utc.fr">I prefer
      the display after applying
      <a class="moz-txt-link-freetext" href="https://codereview.scilab.org/#/c/20981/">https://codereview.scilab.org/#/c/20981/</a>:
      <br>
      <br>
      --> x0=%pi/4;h=%eps/2
      <br>
       h  =
      <br>
      <br>
         1.110D-16
      <br>
      <br>
      --> cos(x0+%i*h)
      <br>
       ans  =
      <br>
      <br>
         0.7071068 - 7.850D-17i
      <br>
      <br>
      However, we could discuss if the arbitrary switch to "e" mode is
      desirable or not, but since Scilab 6.0 we have got used to this
      display mixing "v" and "e" mode...
      <br>
    </blockquote>
    <p><br>
    </p>
    <p>... and IMO it's very suitable. The only rule should be that, <b><i>for
          a given format's width</i></b>, <b><i>the more the number of
          significant displayed figures the better.</i></b> When the
      exponent format is used, it takes 4 or 5 digits (D+12, D+123). As
      a consequence, in v mode, small (absolute) values should be
      displayed in normal mode down to 4 non-significant 0 (e.g.
      0.000012), and switched to "e" mode beyond.</p>
    <p>In v mode, forcing the display of 0.0123456  in "e" mode on the
      (bad) reason that some other huge or tiny numbers in the matrix
      are displayed in this mode, would print 1.234D-02, and so make
      invisible 2 significant figures.<br>
      I do not see any reason that would impose the display mode to be
      homogeneous over all elements of a matrix, possibly canceling the
      display of significant figures in the given format's width.</p>
    <p>Regards</p>
    <p>Samuel</p>
    <p><br>
    </p>
  </body>
</html>