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