BSET
Given a number as argument, returns the value of this number with its Nth bit set, right to left
Implemented by: Gambas
With variations:
Also written as:
Usage
This function sets to 1 the Nth bit of a given number, counted from 0, right to left, and returns the new value.
NewVal = (13, 2)
Variations
Examples
Comments
Related keywords
Similar keywords
In other languages...
References
- https://gambaswiki.org/wiki/lang/bset , last check 2024-03-02