From: Flaab Mrlinux Date: 2006-11-17T07:46:11+09:00 Subject: Ruby arithmetic operations =S Hi there I have to do a program for the first time that needs some math...and which is my surprise that num mod num to get the modulus of a division does not work! neither num div num to the the integer result of it. All the rest of math operands work fine xDDD But how do i do: a) A float division ( 5 / 2 = 2.5) b) A mod division ( 5 mod 2 = 1) c) An integer division =S (5 div 2 = 2) Thx! xD -- Posted via http://www.ruby-forum.com/.