Yesterday, nobody contributed anything. :-(
The official answer is:
-(x ^ 2 * floor(floor(1 / (2 * x)) - x ^ 2))