Get integer and decimal parts of a number at the same time with math.modf in Python https://from-locals.com/python-math-modf/