{"id":24223,"date":"2021-10-14T09:18:38","date_gmt":"2021-10-14T03:48:38","guid":{"rendered":"https:\/\/python-programs.com\/?p=24223"},"modified":"2021-11-05T20:56:25","modified_gmt":"2021-11-05T15:26:25","slug":"python-program-for-modf-function","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-modf-function\/","title":{"rendered":"Python Program for modf() Function"},"content":{"rendered":"

In the previous article, we have discussed Python Program for How To Use While Not<\/a>
\nmodf() Function in Python:<\/strong><\/p>\n

The modf() math function in Python is used to divide a given value into two arguments. Python modf() function takes a fractional part as the first argument and an integer value as the second argument.<\/p>\n

Syntax:<\/strong><\/p>\n

math.modf(Number);<\/pre>\n

Parameters<\/strong><\/p>\n

Number:<\/strong> It could be a number or a valid numerical expression.<\/p>\n

Return Value:<\/strong><\/p>\n