<<

Contents

Search

>>

 

BIT_SHIFT_LEFT

 

 

Function

 

 

Syntax:

BIT_SHIFT_LEFT(<Number>,<Bits>)

 

<Number>

= <NUM-EXPRESSION>

<Bits>

= <NUM-EXPRESSION>

 

Meaning:

Returns the value which results from the left shift of <Number> by <Bits> bits.

 

This is adequate with a multilpication by 2<Bits>.

 

<Bits> must be > 0 otherwise BIT_SHIFT_LEFT returns -1.

 

Parameter:

Number

Numeric expression

Bits

Number of left shift bits

 

Sample:

BIT_SHIFT_LEFT(89,2) returns 356

 

See also:

BIT_SHIFT_RIGHT

BIT

BIT_AND

BIT_OR

BIT_XOR

BIT_CMP