Hello Again all well i have come a bit unstuck with my new assignment , and this is to produce a html page with a dec-bin converter. I can create the box no problem but what i am having trouble doing is the calculations to print the binary string out in graphical form the 1's and 0's. We are having to use the range of integers as (-2,147,483,648 to 2,147,483,647) i know there ias a simple java code to calculate this but i would like to know if anyone has got a more technical way of calculating.. Regards Rob
good Question the reason i want it to be not just the simple way is that i need to find a formula to make the code about 75 lines long and also it is supposed to be better to know the different formulas.
Think about how you would convert a decimal to a binary if you were using a pencil and paper and then simply code the solution to work in the same way.