Answer
Replacing both int() calls in the original script with float() and produces a script that works with floating-point values.
Work Step by Step
Replacing both int() calls in the original script with float() and produces a script that works with floating-point values.