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