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