the colon operator in start:step:stop sometimes exceeds the limit stop
Reported by Denis Mottet
BUG DESCRIPTION:
----------------
In start:step:stop, the colon operator might not stop at or before the upper limit
ERROR LOG:
----------
HOW TO REPRODUCE THE BUG:
-------------------------
sampFreq = 200
start = 0
stop = 28.705
sampPeriod = 1 ./ sampFreq;
t = start:sampPeriod:stop;
// by defintion of :, we should have: t($) <= stop
// This is not the case here...
write(%io(2) , sprintf("\nt($) <= stop ? %s", t($) <= stop) )
OTHER INFORMATION:
------------------
Tried with OSX 12.3 on a MacBook M1 :
- Scilab 6.11 x64 with rosetta
- scilab-6.1.1-accelerate-arm64