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