From: "Peña, Botp" Date: 2002-12-28T13:23:24+09:00 Subject: Re: 1210 / 100 = 12? what? Tom Sawyer [mailto:transami@transami.net] wrote: > Sent: Friday, December 27, 2002 2:27 PM > To: ruby-talk@ruby-lang.org > Subject: Re: 1210 / 100 = 12? what? > > > no i didn't realize that. i thought ruby would automatically > change it to a > float if need be, i.e. with divison, just as it changes to > Bignum if need be. > > honestly i don't like it. now i have to go around adding .0's > all over the > place to make sure the math comes out right. and in some > places i have to do > things like multiple by 1.0 b/c certain values come from cgi > script variables > i have no control over. (though I'm late in the thread) I'm in agreement. I like Ruby since it's supposed to be _closer_ to our minds ;-) When I scribble on a division, I should not be needing to append ".0" :-( Com'on, I thought we've passed thru 3GL langs (I admit I still love fortran and c, but I have to grow :-)... I'd like to introduce the "\" for integer division though :-) > well, it will suffice now that i know, but to me it is > definitely not POLS. > -tom kind regards, -botp