Ruby program to demonstrate the ceil() function
num1 = 10.23;
num2 = -20.53;
print "Num1: " ,num1.ceil();
print "\nNum2: ",num2.ceil();
Output:
Num1: 11
Num2: -20
num1 = 10.23;
num2 = -20.53;
print "Num1: " ,num1.ceil();
print "\nNum2: ",num2.ceil();
Output:
Num1: 11
Num2: -20