From: Dominik Honnef Date: 2009-03-04T06:32:16+09:00 Subject: Re: fixnum problem plz help --lrvsYIebpInmECXG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On [Wed, 04.03.2009 06:28], Guy Dols wrote: > hy >=20 > i am new to ruby i am trieng to get some skils but i have a problem when > i use a fixnum : >=20 > years =3D ask("") > days =3D years * 365 > puts days >=20 >=20 > my answer is > 2222222222222222222222222222222222222222222222222222222222222222222222222= 22222222222222222222222222222222222222222222222 >=20 > but i should be 730 >=20 > i have an screenshot as an attachment plz help me Thats the character "2" (not the number) repeated 365 times. you probably want years =3D ask("").to_i --=20 Dominik Honnef dominikho@gmx.net --lrvsYIebpInmECXG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmtoiwACgkQePZ2jI1LDtfFvACgsM2tAo6ilp11lqTZqJF45DCW V0EAnjyxPaeW3BB96ajnJTb2iVzIatcW =aPDA -----END PGP SIGNATURE----- --lrvsYIebpInmECXG--