Closed hexagonrecursion closed 3 weeks ago
% also works for the other undocumented numeric types; byte
short
char
long
double
I do not think it makes sense to add this information to the docs for % unless the types themselves become a documented feature.
Thanks, @tomangelo2
The docs say that % can only be used with int, but this works:
It appears this was in the game since the initial commit: https://github.com/colobot/colobot/blob/a4c804b49ec872b71bd5a0167c3ad45704a3cc30/src/CBot/CBotVar.cpp#L1125-L1134