ID:2304854
 
Not a bug
BYOND Version:511
Operating System:Windows 7 Ultimate 64-bit
Web Browser:Firefox 56.0
Applies to:DM Language
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Code:
for(var/i=1; i<=2.6/0.2; i++)
world<<i


this only does 12 loops instead of 13 is this a bug or an internal rounding mechanism I'm not aware of??
This is floating-point numbers.

2.6 / 0.2 != 13

2.6 / 0.2 == 12.99999905


13 > 12.99999905, so your loop exits without running i=13.
thanks for pointing it out I used ceil() anyway.
I just thought that since we dont define variable types ourselves that rounding would be handled automatically.
Lummox JR resolved issue (Not a bug)