using loop but have to increment counter with float
how do i get around this?
i have a variable float that i need to use to increment the couther but it throws back error.
is there are another statement i can use to avoid these errors?
for(float i = 0; i<=length; i = i + iterFl)
{
float xmin2tmp = (xminFl * xminFl);// current x2
float xmin3tmp= (xmin2Fl - xmin2tmp);// minimum x2 minus current x2
double y = Math.sqrt(xmin3tmp);// get square root of x2 - x*x
DecimalFormat decFmt =new DecimalFormat();// create object of decimal point
decFmt.setMaximumFractionDigits(1);// set object to allow one decimal place
String output = ("(" + xminFl +", "+ decFmt.format(y) +")");// output (x, y)
xyvalArea.append(output +"\n");// append to textArea with a new line
xminFl = (xminFl + iterFl);
iterFl is giving me the problems
[1407 byte] By [
vanraya] at [2007-10-2 9:34:39]

> i dont believe it, i didnt change a thing for the
> last 2 hours now i compile it, run it and it works no
> problems.
>
> has java ever been known to screw up or anything like
> that?
>
> maybe a re-install might be a good idea?
Most likely you did change something without realizing it. Maybe you forgot to save earlier or something.
jverda at 2007-7-16 23:40:54 >

> i dont believe it, i didnt change a thing for the
> last 2 hours now i compile it, run it and it works no
> problems.
>
> has java ever been known to screw up or anything like
> that?
>
> maybe a re-install might be a good idea?
I really doubt it.
Usually this is programmer error - not compiling when they think they did, running old code in a different directory, thinking they tried something but really did not, etc.
When you spend a long time working on the same problem or staring at the same code, obvious things can escape you.
jbisha at 2007-7-16 23:40:54 >
