f(x) = floor(x + 1.0)
g(x) = floor(x - 1.0)
h(x) = floor(x) + 2.0
p(x) = floor(x) - 1.0