Fix incorrect division results with physical types