# OENetCharge¶

int OENetCharge(const OEMolBase &mol)


Determines the net charge on a molecule. If the molecule has specified partial charges, see OEChem‘s OEHasPartialCharges function, this function returns the sum of the partial charges rounded to an integer. Otherwise this function returns the sum of the formal charges on each atom of the molecule.