Fix Float division issue with duty cycle