Fix loss of precision

Similar to HiSPARC/publicdb#39