Search:

Type: Posts; User: Harj

Search: Search took 0.10 seconds.

  1. Replies
    10
    Views
    5,468

    [SOLVED] Re: For loop-ing decimal format

    I thought setting it to null was the same as not giving it a value? that way only the #s would appear later.

    either way I'm done with this, your original version solves all so thanks again.
  2. Replies
    10
    Views
    5,468

    [SOLVED] Re: For loop-ing decimal format

    formerly i would get outputs like so:



    just changed

    String decis = null;

    to
  3. Replies
    10
    Views
    5,468

    [SOLVED] Re: For loop-ing decimal format

    Thanks a lot, code works like a charm your way.

    I tried to code it as a for-loop as well just for practice, and I got that to work kind of. It rounds to desired decimal places, but I can't find an...
  4. Replies
    10
    Views
    5,468

    [SOLVED] Re: For loop-ing decimal format

    wouldn't i have to change the value of int places in the coding to change the number of decimal places with this method though?
  5. Replies
    10
    Views
    5,468

    [SOLVED] Re: For loop-ing decimal format

    I'm pretty new to java, i can write a loop but i don't know how to concatenate a string.
  6. Replies
    10
    Views
    5,468

    [SOLVED] For loop-ing decimal format

    Hi all, I'm trying to find a way to use a for-loop to determine the number of decimal places that my program will output to. Specifically I want the the decimal place to be determined at run time by...
Results 1 to 6 of 6