Is it possible to simulate a floor() function with elementary arithmetic? I'm using a "programming language" that only allows basic operations: addition, subtraction, multiplication, and division.
Is it possible to emulate a floor function (i.e. drop the decimals a number) by using only those operators? I'm only interested in positive numbers
Edit: Here's the documentation describing what's possible (which is only elementary arithmetic)

You can do integer division using complex arithmetic, but there's a different function for each divisor. For example, 
$$\left\lfloor \frac{x}{2} \right\rfloor = \frac{x}{2} - \frac{1 - (-1)^x}{4} $$
for $x$ an integer. For higher $k$ you'll use $k$th roots of unity.
