Get the decimal part of a number

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

9 Likes