Yesterday, nobody contributed anything. :-( The official answer is: x - sin(floor(-x)).