Frequently Asked Question

ASSESSMENT: How can I check the value of single bits?
Last Updated 26 days ago

To check single bit values you can use the function TPT.getBit(int bits, int position).

For example to check the third bit value of the number 4 (4 == 0b100) you can use TPT.getBit(4,2) in a compare step or in any other check-function in the assessments.

Please Wait!

Please wait... it will take a second!