.. include:: ../substitutions

.. oe:namespace:: OEMolProp

.. meta::
   :keywords: OEGetHalideFraction

.. _OEMolProp_OEGetHalideFraction:

.. oe:function:: OEGetHalideFraction

   .. oe:language:: c++ java csharp

      .. oe:api::

         double OEGetHalideFraction(const OEChem::OEMolBase& mol,
                                    bool isotopic = false)

   .. oe:language:: python

      .. oe:api:: python

         OEGetHalideFraction(mol: Union[OEGraphMol,OEMol,OEQMol],
                             isotopic: bool = False) -> float

   Returns the percent of molecular weight from halides.

   *isotopic*
      This parameter determines whether the isotopic information is taken
      into account when calculating the molecule weight.

   .. seealso::

      * :oe:func:`OEChem::OECalculateMolecularWeight` function in the **OEChem TK** manual
      * :ref:`filter_files_halide_fraction` subsection describing filter files
