Decimal to Binary Conversion

Hii ROOT Users

I would like to convert a decimal number into a binary number and apply data masking on it after that i wold like to convert it again into decimal . The number which i obtain finally will be use for tree filling .

Can Anybody tell me how can i do this

With Regards


I don’t understand what you mean by “decimal number”. If it’s like “int i = 12; do_bits_manipulation(i);” then you could use TBits, and initialize it with Set(&i, numer_of_bits).

Cheers, Axel.