first time floating-point math failed me