Change the integer variable to type double - is this right?

Printable View