- 1

9Ă·5=1.8

This lesson says that 9Ă·5=1.4

21st Dec 2016, 4:36 PM
Jerry Killian
Jerry Killian - avatar
2 Answers
0
9 / 5 = 1 9 % 5 = 4 In math, 9 / 5 would be 1.8 OR 1 remainder 4 % (modulus) takes the remainder left over after division
22nd Dec 2016, 4:47 AM
JayDepp
JayDepp - avatar
0
Basically it does: x = 9.0 y = 5.0 puts "#{z = x/y}" #result equals 1.8 Since it has not x.0 and y.0, the result from Ruby computing is 1. And the excersice says: 9 divided by 5 is 1 with a remainder of 4. That means how many times 5 could be in 9? | result 1 | and remains 4 how many times 5 could be in 4? | result 0 | and remains 4 plus .0 how many times 5x10-1 (that means 0.5) could be in 4.0? | result 0.8 | and remains 0
18th Apr 2017, 4:09 PM
Rafael Figueroa
Rafael Figueroa - avatar