As we all know, the range of bytes is from 0 to 255.
I have two bytes, I want to create another number that is reversible, but with a minimum length, which combine these two numbers and create a new, simplest solution
a = b1 * 1000 + b2
the opposite will be
b1 = a / 1000
b2 = a% 1000
the length of the above solution, varying from 0 to 6, I need a formula with FIXED and minimum length
Ehsan source
share