Ok, I'm not a Java expert yet but from looking at examples I still can't see what's wrong with this:
double dOpen; DecimalFormat fmt = new DecimalFormat("0.00000"); ... print(gsName+": Order ("+sLabel+") opened at "+fmt.Format(dOpen));
I get this compile error: "The method Format(double) is undefined for the type DecimalFormat"???
Any ideas?
Thanks Mark
tspeicher
Post subject: Re: Error using DecimalFormat?
Post rating: 0
Posted: Wed 17 Nov, 2010, 10:48
User rating: 0
Joined: Wed 18 May, 2011, 11:25 Posts: 60 Location: DE
i think you should write fmt.format(dOpen) and not fmt.Format(dOpen). if you use an ide like eclipse or netbeans, you can use autocomplete and you will not make these errors