Originally posted by lakshmi manepally:
Double s1 = Double.parseDouble(sAmount2)/sAmt *100;
SCJP <br />SCWCD <br />SCBCD <br />SCEA-1
Originally posted by Nicholas Jordan:
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by Vishal Matere:
Double.parseDouble(String) return double primitive.
How come you are getting Double wrapper object in return?
Is this syntax correct?
V
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by Rob Prime:
That would be NumberFormat. DecimalFormat is the most-used subclass.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
//Here the value of d should be in the format as 73.45%. How is it possible?
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by Campbell Ritchie:
(...snip...))take no notice about Double trouble
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Originally posted by lakshmi manepally:
No it is not working.
Whatever your dataset is, you are passing it two things:Originally posted by lakshmi manepally:
. . .
dataset.setValue(sb.toString(), int position);//here why are you puuting int instead of double
Not at all. Actually the code you have quoted won't compile; there are two method parameters called "s".Originally posted by lakshmi manepally:
But with the below code
s += "%";
How would I pass the value s into the below method for the double?
dataset.setValue(String s, double s);
Any suggestions please...
Thanks
SCJP 1.4<br />SCJD
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |