On Aug 25, 9:54 pm, Tom Meinlschmidt <[email protected]> wrote: > >> means bit shift > > eg > > 8 >> 3 means shift value by 3 bits to the right .. result is 1 (8 = 1000b, > after shift is 0001b = 1) > > opposite is << … > > 1 << 3 = 8 >
Of course, being ruby it can mean different things on different objects. For Date objects for example >> 3 advances the date by 3 months (and << moves in the other direction) Fred > tom > > ps: in asm it is shl or shr > > On Aug 25, 2011, at 22:12 , nate hunter wrote: > > > What does this ">>" mean? As in... > > > first_payment_in_series_date >> 3 > > > I have never used this nor have i seen it before. > > > -- > > Posted viahttp://www.ruby-forum.com/. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > =========================================================================== > ==== > Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache > > www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz > =========================================================================== > ==== -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

