Newbie question: 9/5=1?

Dan,

that ruby tutorial looks really great so far.
I picked up a few things just looking at it.

Can you put it in a downloadable zip?

Of course I'll be looking for the rest.

Thanks

Dee A. Jacobs

···

-----Original Message-----
From: Daniel Carrera [mailto:dcarrera@math.umd.edu]
Sent: Thursday, March 20, 2003 1:23 PM
To: ruby-talk@ruby-lang.org
Subject: Re: Newbie question: 9/5=1 ?

On Fri, Mar 21, 2003 at 03:18:59AM +0900, Thomas Jollans wrote:

while learning ruby i wanted to program a simple fahrenheit to celsius
converter. for that i need 9/5 to be 1,8 (and not 1). how do i do that
in ruby?

You might be interested in this tutorial:
http://www.math.umd.edu/~dcarrera/ruby/0.3/

It’s a work in progress, but it’s quite useful already.

In particular, it covers problems such as the one you just described.


Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137