Illustrative is magnesium diboride (MgB2). Each boron atom has a formal −1 charge and magnesium is assigned a formal charge of +2.
Magnesium diboride (MgB2) serves as an illustration. In this compound, each boron atom bears a −1 formal charge, whereas magnesium is assigned a +2 formal charge.