# The following has been generated automatically from src/core/qgsmathutils.h try: QgsMathUtils.doubleToRational = staticmethod(QgsMathUtils.doubleToRational) except (NameError, AttributeError): pass