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