Project

General

Profile

$biton » History » Version 3

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

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$biton(A,N)*
4
5
Returns the A value with the Nth bit turned on.
6 2 Per Amundsen
7 3 Per Amundsen
_Supports "Big Integers":https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic_
8
9 2 Per Amundsen
*Parameters*
10
11
A - The value to modify.
12
N - The Nth bit to turn off.