Fixed floating in divide function