Table of Contents

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

Similar keywords

In other languages...

References