Use Python as Programming Language Write a function that will return the fraction part after dividing a
Fantastic news! We've Found the answer you've been seeking!
Question:
Use Python as Programming Language
Write a function that will return the fraction part after dividing a number by another. The range should be between 0 and 1. Exception: Since dividing anything by 0 results in error so if the denominator is 0, the function will return 0 instead of attempting the division.
Sample Input
(5, 2)
(5, 0)
(0, 5)
Sample Output
0.5
0
0
Related Book For
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke
Posted Date: