Just to elaborate on VoG's code..
He set 'x' as an integer variable so that 'x' can only take integer part of a result.
So, any values will become truncated when using Int method where it could be seen in the code.
So, x = Int (7/2)
would become x = Int (3.5)
Then Int will truncate everything after the decimal giving you
x = 3