Overview:
- The function fmod() returns the floating point remainder of the division operation x/y of two numbers.
- When the value of the denominator is zero the fmod() function raises an Exception stating ValueError: math domain error.
Example:
|
# Example Python program that returns the floating point num1 = 10.5 # Calculate the remainder |
Output:
|
Remainder: 0.5 |