Search:

Type: Posts; User: mick.bhattarai

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    2,988

    [SOLVED] Re: decimal to binary problem

    i dont think initializing binarray dynamically is going to help me with this program, specially [decnum / 2] because the array size is pretty much the number of integers a converted binary will have ...
  2. Replies
    6
    Views
    2,988

    [SOLVED] Re: decimal to binary problem

    You do realize that i am trying to store the binary as an integer(even though it seems to be the wrong way to solve this problem), don't you? so the "System.out." method(which seems more like the way...
  3. Replies
    6
    Views
    2,988

    [SOLVED] Re: decimal to binary problem

    thank you for your reply,

    i assigned only 16 array size because for now i just want to check the conversion till 4 digit decimal (i.e. 9999) which should ultimately produces a 15 digit binary(but...
  4. Replies
    6
    Views
    2,988

    [SOLVED] decimal to binary problem

    my code:





    public class d2b {

    private int decnum, modnum, quotnum, count = 0, tot, binarray[] = new int[16], convnum, alter = 1;
Results 1 to 4 of 4