Using ruby, the division of two integers is an integer division, that is, the result is an integer. For example:
3/2
=> 1
If I want the result to be a decimal number, I can use a floating number instead of an integer:
3.0/2
=> 1.5...
asked by
18.02.2014 / 00:00