non puoi fare una condizione del tipo

if numero>int(numero) then
numero=numero+1
end if