Ruby program to get the remainder of float numbers using library function
num1 = 22.34;
num2 = 3.0;
print "Remainder is: ", num1.modulo(num2);
Output:
Remainder is: 1.3399999999999999
num1 = 22.34;
num2 = 3.0;
print "Remainder is: ", num1.modulo(num2);
Output:
Remainder is: 1.3399999999999999