E
eric.steigerwald
Can anyone offer any help with this ? I have the following code :
DecimalFormat df = new DecimalFormat("0.00");
mrate = show_student_awards.getString("monthly_rate");
double dollar = Double.parseDouble(mrate);
double dollar2 = df.format(dollar);
the code runs up to the point where I attempt to do the format. There
it returns an error saying that it expects a double, and found a
string. The data in the resultset (show_student_awards) is in the SQL
2005 database as a currency data type. I've also tried retrieving it
as a double, but get the same result. Java just won't seem to convert
it to a double.
Thanks.
Eric
DecimalFormat df = new DecimalFormat("0.00");
mrate = show_student_awards.getString("monthly_rate");
double dollar = Double.parseDouble(mrate);
double dollar2 = df.format(dollar);
the code runs up to the point where I attempt to do the format. There
it returns an error saying that it expects a double, and found a
string. The data in the resultset (show_student_awards) is in the SQL
2005 database as a currency data type. I've also tried retrieving it
as a double, but get the same result. Java just won't seem to convert
it to a double.
Thanks.
Eric