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