When I used trunc it gave me slight incorrect values converting back, but maybe that's ok for you.