<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 08/01/2021 à 13:28, Jean-Yves
      Baudais a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:2012401579.312238.1610108902150.JavaMail.zimbra@insa-rennes.fr">
      <pre class="moz-quote-pre" wrap="">----- Original Message -----
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">From: "Stéphane Mottelet" 
--> bitstring(%pi)
ans =

"0 10000000000 1001001000011111101101010100010001000010110100011000"
[...]
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.exploringbinary.com/binary-converter/">https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.exploringbinary.com/binary-converter/</a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">

Thank you for the recall on floating point representation and for the link (the French wiki page on IEEE 754 gives also a full and clear example). Of course we can convert float64 from finite binary representation to decimal one with more than 16 digits, but in that case the binary to float tranform is not a "relation binaire univoque" and the finite number representation problem is "put under the carpet". As I prefer one-to-one convertion and I hate carpet, I use 16 digits at most to write float64.</pre>
    </blockquote>
    <p>There is no hiding of anything in my demonstration. I was just
      showing that the figures displayed by Scilab after the 16th are
      computed on a clear basis. This is a legacy choice of Scilab to
      allow the display of more than 16 decimals and this can be
      discussed. For example, "long" format of Matlab displays the
      shortest decimal number matching the internal IEEE754
      representation.</p>
    <p>S.<br>
    </p>
    <blockquote type="cite"
cite="mid:2012401579.312238.1610108902150.JavaMail.zimbra@insa-rennes.fr">
      <pre class="moz-quote-pre" wrap="">

-- Jean-Yves
</pre>
      <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>