% doesn't work on float number. It either produce a division by zero if the number is < 1 or it just rounds everything up (which is worse, since it's silently failing)
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
world.log << 1.5 % 0.5
world.log << 4 % 1.5
world.log << 3.5 % 1
Expected Results:
0
1
0.5
Actual Results:
Division by zero
0
0
Does the problem occur:
Every time? Or how often? yes
In other games? na
In other user accounts? na
On other computers?na
When does the problem NOT occur? never
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) no clue
Workarounds:
world.log << 15 % 5
world.log << 40 % 15
</1>