This limit can be increased by increasing the number of loop executions by changing the value in the while loop from 16 to say 32. (be sure it is a valid number which is a factor of 2 ).2 : This program is the most basic method to do this type of conversion.