Skip to content

BigInt.And

Name Mandatory Description Default Type
⬅️ Input Any valid big integer(s) represented as bytes supported by this operation. Bytes[Bytes]
Output ➡️ Outputs the result of the AND operation as a big integer represented as bytes. Bytes[Bytes]
Operand No The second big integer to perform the AND operation with. 0 Var(Bytes)Var([Bytes])

This shard performs a bitwise AND operation on the input big integer with the big integer specified in the Operand parameter and outputs the result. A bitwise AND operation is a binary operation that compares each bit of the binary representations of two numbers and outputs 1 if the bits are 1 and 0 otherwise. The resulting number is a big integer representation of the 1s and 0s concatenated.

Examples

1
2
3
4
5
6
2 | BigInt = expected
3 | BigInt = operand

6 | BigInt
BigInt.And(Operand: operand)
BigInt.Is(expected) | Assert.Is(true true)