Log In  


Seems to get confused if the first number is the largest:

2


Wow, this is an ancient bug. I used the same code 1000s of times over 15 years, but by chance always with low values as the first parameter. o_O

Anyway, thanks! -- fixed for 0.1.2


What is mid() useful for, anyway?


I normally use it to bound a something between a minimum and maximum
e.g. to make sure 0 <= x <= 127

x = mid(0, x, 127)


Which is really useful in games.

Doing it with MID() saves tokens/screen space/headaches because you typed "else if" instead of "elseif".


ooh good to know! now i can save tokens!


Heh, impbox, I immediately thought of you when I read that exchange.



[Please log in to post a comment]