title: Lua interprets integer as non-integer number
body: <p>For some reason Lua doesn't interpret integers as integers if I do the following: (<code>integer%1</code> should be <code>0</code> but in this example I'll show it is actually</p>
  
  <pre><code>x = 4
  for i=1,25 do
    x = x - 0.04
  end
  
  print(x) -- 3
  print(x%1) -- 1
  print(math.ceil(x) == x) --false
  print(math.ceil(x)) -- 3
  </code></pre>
  
  <p>Probably it is a bug, but is there a way to evade it? this is really important to me. (and no, I can't use <code>math.ceil(x)</code> because I have in the way numbers such as <code>2.4</code> that I don't want to interpret as integers...</p>