[Scilab-users] integers?
Stefan Du Rietz
sdr at durietz.se
Sat Aug 30 13:14:05 CEST 2014
Hello,
I got a strange error and tried to debug it:
-1->dv
dv =
2014. 8. 31. 8. 0.
Is the third element more than the number of days in the month?
-->eday = eomday(2014, 8)
eday =
31.
-1->incmon = find(dv(:, 3) > eday)
incmon =
1.
But both are integers 31.:
-1->[dv(3), eday]
ans =
31. 31.
So why these:
-1->dv(3) > eday
ans =
T
-1->dv(3)==31.
ans =
F
-1->dv(3) - 31.
ans =
3.881D-11
Regards
Stefan
More information about the users
mailing list