Hi,
I'm wondering whether the following end of the sequence is intended:
<hansl>
m = seq(0.01, 0.99, 0.01) # expect up to 0.99
eval nelem(m) # get only 98
eval min(m) # 0.01 (OK)
eval max(m) # 0.98 ?
</hansl>
Of course, floats can be tricky and I guess that could be the reason,
namely that the 99th member's representation could be a tiny bit larger
than 0.99 and thus wouldn't be accepted anymore.
However, checking with an explicit summing loop at the hansl level I do
get the pretty exact 0.99000000 end value. Or was the number of shown
digits simply not big enough? Or is there a difference between the C
level and the hansl level in such a context?
BTW, I know that I can do m = seq(1, 99, 1) / 100 instead and so I get
what I want. That's not the point right now.
thanks
sven