[Scilab-users] {EXT} Re: display of complex/not real numbers, again

Federico Miyara fmiyara at fceia.unr.edu.ar
Tue Sep 17 16:32:14 CEST 2019


Stéphane,

>> Let me give the following rationale. When parsing with msscanf we get
>>
>> --> msscanf("1.60000000000000009","%lf")==1.6
>>  ans  =
>>
>>   T
>>
>> but
>>
>> --> msscanf("1.70000000000000018","%lf")==1.7
>>  ans  =
>>
>>   F
>>
>> The actual display algorithm does not use msscanf but a 
>> cross-platform code (msscanf give different results on Windows and 
>> Linux/OSX), but this was just a way to explain why the display of 1.7 
> I meant x(8) when x=1:0.1:2, i.e. 1.70000000000000018
>> could (not should) be different.

OK, I can now grasp what is the reason why I see 1.7 instead of 
1.7000000 on my system, but I cannot find a good rationale for trailing 
zeros.

Regards,

Federico Miyara





---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190917/72ae4882/attachment.htm>


More information about the users mailing list