because 4.5 is not an integer
...does not answer the question "Why do you think you need a floating point value?"
"modified code from "Ultimate Starter Kit with Mega 2560 for Arduino" PDF lesson 24:servo motor control test" is the original source of this code before I modified it
Hey! Guess what? Not everyone is in possession of that particular .pdf.