Project

General

Profile

$and » History » Version 6

Per Amundsen, 09/09/2020 10:02 AM

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
A - First number.
14
B - Second number.
15
16
*Example*
17
18 1 Per Amundsen
<pre>
19 4 Per Amundsen
;Returns 4
20
//echo -ag $and(5,4) 
21 3 Per Amundsen
</pre>