Difference between revisions of "BITLSHIFT()"

From Lianjapedia
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to shift the bits in a numeric value a specified number of places to the left
 
Function to shift the bits in a numeric value a specified number of places to the left
 
  
 
==Syntax==
 
==Syntax==
 
BITLSHIFT(<expN1>,<expN2>)
 
BITLSHIFT(<expN1>,<expN2>)
 
  
 
==See Also==
 
==See Also==
 
[[BITAND()]], [[BITCLEAR()]], [[BITNOT()]], [[BITOR()]], [[BITRSHIFT()]], [[BITSET()]], [[BITTEST()]], [[BITXOR()]]
 
[[BITAND()]], [[BITCLEAR()]], [[BITNOT()]], [[BITOR()]], [[BITRSHIFT()]], [[BITSET()]], [[BITTEST()]], [[BITXOR()]]
 
  
 
==Description==
 
==Description==
 
The BITLSHIFT() function shifts the bits in the numeric value <expN1> the specified number of places to the left <expN2> and returns the new value.  If <expN1> and <expN2> are not integers, they will be converted to integer values before the shift takes place.
 
The BITLSHIFT() function shifts the bits in the numeric value <expN1> the specified number of places to the left <expN2> and returns the new value.  If <expN1> and <expN2> are not integers, they will be converted to integer values before the shift takes place.
 
  
 
==Example==
 
==Example==
Line 23: Line 19:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Bitwise Operations]]
+
[[Category:Numeric Data Functions]]
[[Category:Bitwise Operations Functions]]
+

Latest revision as of 08:45, 4 February 2013

Purpose

Function to shift the bits in a numeric value a specified number of places to the left

Syntax

BITLSHIFT(<expN1>,<expN2>)

See Also

BITAND(), BITCLEAR(), BITNOT(), BITOR(), BITRSHIFT(), BITSET(), BITTEST(), BITXOR()

Description

The BITLSHIFT() function shifts the bits in the numeric value <expN1> the specified number of places to the left <expN2> and returns the new value. If <expN1> and <expN2> are not integers, they will be converted to integer values before the shift takes place.

Example

x = 6			&& 0110
y = 1
? bitlshift(x,y)
        12		&& 1100