At a glance, I can tell you it doesn't return the proper bit lengths and it doesn't return a binary string for the value zero.Quote:
Originally Posted by xld
For instance, an 8 bit result for the dec value 25 should return: 00011001
The mvidas formula returns a 5 bit result for 25 and other various bit lengths for other numbers.