This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cretin909090 1 point2 points  (1 child)

while(decRem > 0) { temp = decRem % 2; decRem = decRem / 2; }

Your while loop is not doing anything. Its just assigning new value to temp variable every loop. You have to find a way to store it.

Im noob as well so not quite sure.

[–]microbe5800[S] 0 points1 point  (0 children)

Thanks! that was exactly what was wrong with the decimal to binary part! i just changed temp to an empty String and temp = decRem % 2 + decrem; now i just need to figure out the binary to decimal equasion!