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