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