From: gabriele renzi Date: 2004-09-30T07:20:03+09:00 Subject: Re: Math Tricks Jamis Buck ha scritto: > James Edward Gray II wrote: > >> Quick question. When I run: > > > [snip] > >> I see 3 as the last output when I expect to see 3.2. Why is that? > > > If you divide two integers, you get an integer (with Ruby). So instead > of say "2" and "3", say "2.0" and "3.0". or do: require 'mathn' to get magic integration of every numerical thingy: >> 1/2 => 1/2