Stéphane,

Thanks for your comments, I didn't know bitstring().

Regards,

Federico Miyara


On 08/01/2021 10:48, Stéphane Mottelet wrote:


Le 08/01/2021 à 13:28, Jean-Yves Baudais a écrit :
----- Original Message -----
From: "Stéphane Mottelet"
--> bitstring(%pi)
ans =

"0 10000000000 1001001000011111101101010100010001000010110100011000"
[...]
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.exploringbinary.com/binary-converter/
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.

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.

S.

-- Jean-Yves

_______________________________________________
users mailing list
[email protected]
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

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users



--
El software de antivirus Avast ha analizado este correo electrónico en busca de 
virus.
https://www.avast.com/antivirus
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to