helloworlds modified code works around this, but based upon your original code make sure to add decimals or casts to all your numbers, otherwise its doing integer math and not floating point...