The ‘modf’ function returns a tuple containing fractional and integer parts of a number. Maybe that could be useful to you?
9 Likes
The ‘modf’ function returns a tuple containing fractional and integer parts of a number. Maybe that could be useful to you?