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