can a refrigerator that is 31.5 cubic feet fit in a space that is 31 cubic feet?

No, a refrigerator that is 31.5 cubic feet will not fit in a space that is only 31 cubic feet. The refrigerator is larger in volume than the available space, so it will not fit.