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.
Type: Posts; User: Harj
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.
formerly i would get outputs like so:
just changed
String decis = null;
to
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...
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?
I'm pretty new to java, i can write a loop but i don't know how to concatenate a string.
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...