Modified an integer division to double