Integer – HP Prime Graphing Wireless Calculator User Manual
Page 296
![background image](/manuals/397843/296/background.png)
292
Programming in HP PPL
DiceSimulation program” on page 264.
Integer
BITAND
Syntax: BITAND(int1, int2, … intn)
Returns the bitwise logical AND of the specified integers.
Example: BITAND(20,13) returns 4.
BITNOT
Syntax: BITNOT(int)
Returns the bitwise logical NOT of the specified integer.
Example: BITNOT(47) returns 549755813840.
BITOR
Syntax: BITOR(int1, int2, … intn)
Returns the bitwise logical OR of the specified integers.
Example: BITOR(9,26) returns 27.
BITSL
Syntax: BITSL(int1 [,int2])
Bitwise Shift Left. Takes one or two integers as input and
returns the result of shifting the bits in the first integer to the
left by the number places indicated by the second integer.
If there is no second integer, the bits are shifted to the left
by one place.
Examples:
BITSL(28,2) returns 112
BITSL(5) returns 10.
BITSR
Syntax: BITRL(int1 [,int2])
Bitwise Shift Right. Takes one or two integers as input and
returns the result of shifting the bits in the first integer to the
right by the number places indicated by the second
integer. If there is no second integer, the bits are shifted to
the right by one place.
Examples:
BITSR(112,2) returns 28
BITSR(10) returns 5.
BITXOR
Syntax: BITXOR(int1, int2, … intn)
Returns the bitwise logical exclusive OR of the specified
integers.
Example: BITXOR(9,26) returns 19.