Jump to content

Num to Bits


Malcolm

Recommended Posts

Hello,

 

The NUM to BIT function will take an integer and convert its binary representation in an array of bits.  For instance, using a 4-bit integer as an example where the right most bit is "bit 0":

 

0 = 0000

1 = 0001

2 = 0010

3 = 0011

4 = 0100

etc..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.