Hello

Anyone who can shine a light on this.

With the method1 (which Im using now) I have no idea how to store the 0 and 1 on the right place because you can't know how many 0 en 1 you need. You can store in a a array and read it from the last to the first but you don't know which number the lastest entry has.

Method2 jhas the disadvantage that you first has to know which power of 2 is the nearest.

Roelof