From: Tore Haug-Warberg Date: 2003-06-20T01:18:33+09:00 Subject: Weird Fixnum division Hi, I'm new to this group but have used Ruby for quite a while now (it's a great language by the way). In one of my methods I intend to divide a Fixnum by a second Fixnum. I'd expected a Fixnum result but get Float back. Can anyone give me an idea of what's wrong? The code looks like this: puts @m.class puts d.class puts @m puts d @m /= d puts @m.class puts d.class puts @m puts d and the output is: Fixnum Fixnum 8 1 Float Fixnum 8.0 1 Yours, Tore Haug-Warberg