# Common Tasks Performed with Visual Basic Operators

Visual Studio 2012

Operators perform many common tasks involving one or more expressions called operands.

## Arithmetic and Bit-shift Tasks

The following table summarizes the available arithmetic and bit-shift operations.

 To See Add one numeric value to another Subtract one numeric value from another Reverse the sign of a numeric value Multiply one numeric value by another Divide one numeric value into another Find the quotient of one numeric value divided by another (without the remainder) Find the remainder of one numeric value divided by another (without the quotient) Raise one numeric value to the power of another Shift the bit pattern of a numeric value to the left Shift the bit pattern of a numeric value to the right

The following table summarizes the available comparison operations.

 To See Determine whether two values are equal = Operator (Comparison Operators in Visual Basic) Determine whether two values are unequal <> Operator (Comparison Operators in Visual Basic) Determine whether one value is less than another < Operator (Comparison Operators in Visual Basic) Determine whether one value is greater than another > Operator (Comparison Operators in Visual Basic) Determine whether one value is less than or equal to another <= Operator (Comparison Operators in Visual Basic) Determine whether one value is greater than or equal to another >= Operator (Comparison Operators in Visual Basic) Determine whether two object variables refer to the same object instance Determine whether two object variables refer to different object instances Determine whether an object is of a specific type

The following table summarizes the available concatenation operations.

 To See Join multiple strings into a single string & Operator (Concatenation Operators in Visual Basic) Join numeric values with string values + Operator (Concatenation Operators in Visual Basic)

## Logical and Bitwise Tasks

The following table summarizes the available logical and bitwise operations.

 To See Perform logical negation on a Boolean value Perform logical conjunction on two Boolean values Perform inclusive logical disjunction on two Boolean values Perform exclusive logical disjunction on two Boolean values Perform short-circuited logical conjunction on two Boolean values Perform short-circuited inclusive logical disjunction on two Boolean values Perform bit-by-bit logical conjunction on two integral values Perform bit-by-bit inclusive logical disjunction on two integral values Perform bit-by-bit exclusive logical disjunction on two integral values Perform bit-by-bit logical negation on an integral value