ID EN
Math

modf

Python 3.11

Return the fractional and integer parts of x. Both results carry the sign of x and are floats.

Syntax

PYTHON
math.modf(x)