Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.27 seconds.

  1. Replies
    10
    Views
    5,472

    [SOLVED] Re: For loop-ing decimal format

    That is interesting. You'd think when you set decis to null, when you tried to add to it you would get a compiler error or something, but it seems to just concatinate to it as if null was the String...
  2. Replies
    10
    Views
    5,472

    [SOLVED] Re: For loop-ing decimal format

    Give an example of the output. I'm having trouble visualizing where the null is.
  3. Replies
    10
    Views
    5,472

    [SOLVED] Re: For loop-ing decimal format

    Yes, but the int place value would be the value the user inputs for the number of decimal places. So you would want to set places to whatever the user inputs for the number of decimal places. So that...
  4. Replies
    10
    Views
    5,472

    [SOLVED] Re: For loop-ing decimal format

    You dont have to actually loop to do this. DecimalFormat has a method called setMaximumFractionDigits(int). So, we can simply use this to set the number of places. Here is a snippet of code I made...
Results 1 to 4 of 4