Fix non-integer math