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