Extrapolation of Periodic Functions Using Binary Encoding of Continuous Numerical Values