From: Eric Hodel Date: 2006-10-01T04:37:50+09:00 Subject: Re: "1".to_i *2 == 1 && "1".to_i*2 == 2 ? On Sep 29, 2006, at 4:47 PM, Giovanni Intini wrote: > Can anyone explain to me why > > "1".to_i*2 is equal to 2 > and > "1".to_i *2 is equale to 1? This is why you should run with -w as often as possible: $ ruby -w "1".to_i *2 -:1: warning: `*' interpreted as argument prefix -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com