Categories
Programming

List of Ruby Operands

operand what it does
<< append (in context of strings, arrays, IO); shift position of bits in Bignum and Fixnum
>> shift position of bits in Bignum and Fixnum
~ bitwise NOT (high-presendence)
& bitwise AND (medium-presendence)
| bitwise OR (medium-presendence)
^ bitwise XOR (medium-presendence)
** exponent
+ addition
subtraction
* multiplication
/ division
% modulo operator

Leave a Reply

OR LOG IN WITH




Your email address will not be published. Required fields are marked *