[Scilab-users] Whay False
Carrico, Paul
paul.carrico at esterline.com
Tue Aug 23 13:56:13 CEST 2016
Hi All,
I spent a lot of time in looking for an issue in my code ; finally I found the origin but I do not understand why ... probably a very basic reason :|
Any suggestion regarding the code here after ?
Thanks
Paul
#########################################################
mode(0)
a = 2.05
entier = int(a)
reel = modulo(a,2)
if ( reel == 0.05) then
chaine = '05'
elseif (reel == 0.5) then
chaine = '50'
else
chaine = '00'
end
printf("chaine = %s\n',chaine)
// Nota
reel == 0.05 // whay False ?????
EXPORT CONTROL :
Cet email ne contient pas de données techniques
This email does not contain technical data
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160823/58f5ce97/attachment.htm>
More information about the users
mailing list