Project

General

Profile

$and » History » Version 7

Per Amundsen, 02/16/2023 05:18 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 4 Per Amundsen
*$and(A,B)*
4 1 Per Amundsen
5
Returns binary A & B.
6 5 Per Amundsen
7
Both parameters can be 64 bit longs.
8 1 Per Amundsen
9 6 Per Amundsen
_Supports "Big Integers":https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic_
10
11 4 Per Amundsen
*Parameters*
12
13 7 Per Amundsen
table(ktable).
14
|*Parameter*|*Description*|
15
| A | First number. |
16
| B | Second number. |
17 4 Per Amundsen
18
*Example*
19
20 1 Per Amundsen
<pre>
21 4 Per Amundsen
;Returns 4
22
//echo -ag $and(5,4) 
23 3 Per Amundsen
</pre>