Wednesday, February 8, 2023

Bitwise Constructor

Bitwise Constructor

Bitwise Constructor

Switch individual bits to get an integer value for later bitwise operations

Can click on the checkboxes or their surrounding tabs to enable/disable bits. Or change the textbox.





Your Int-32's value:

Byte 1


1.
1
2.
2
3.
4
4.
8
5.
16
6.
32
7.
64
8.
128

Byte 2


1.
256
2.
512
3.
1024
4.
2048
5.
4096
6.
8192
7.
16384
8.
32768

Byte 3


1.
65536
2.
131072
3.
262144
4.
524288
5.
1048576
6.
2097152
7.
4194304
8.
8388608

Byte 4


1.
16777216
2.
33554432
3.
67108864
4.
134217728
5.
268435456
6.
536870912
7.
1073741824
8.
2147483648

No comments:

Post a Comment

Coding Challenge #54 C++ int to std::string (no stringstream or to_string())

Gets a string from an integer (ejemplo gratis: 123 -> "123") Wanted to come up with my own function for this like 10 years ago ...