I am trying to separate a float into it\'s integral and fractal parts. My method works fine for some values, but does not when I encounter a value that has a longer decimal repr