SyntaxFix
Write A Post
Hire A Developer
Questions
We can use a not famous built-in function; divmod:
>>> s = 1234.5678 >>> i, d = divmod(s, 1) >>> i 1234.0 >>> d 0.5678000000000338