On Sep 29, 2004, at 4:15 PM, Jamis Buck wrote: >> 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: def div; binary { |l, r| l.to_f / r } end