write a program to find a fraction of a number in python?
Answers
Answered by
1
Answer:
modf() in the math module can be used to get the fractional and the integer parts of a number at the same time. math. modf() returns a tuple (fractional part, integer part) . Each can be assigned to a variable using unpacking
Similar questions
Math,
4 days ago
Social Sciences,
4 days ago
Math,
4 days ago
Math,
9 days ago
Science,
9 days ago
Social Sciences,
8 months ago
Biology,
8 months ago
English,
8 months ago