On Sat, Nov 14, 2026 at 12:09 PM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
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.
x = 0.01
loop 98
x += 0.01
printf "x = %.16g\n", x
endloop
At iteration 98 x = 0.9900000000000007
Allin