In oxygen difluoride (OF2) and dioxygen difluoride (O2F2), fluorine gains electron with negative charge as F is more electronegative than O. Thus, O will have positive charge. ∴ Oxidation number of O in OF2=+2 ∴ Oxidation number of O in O2F2=+1