Hi, I'm trying to set a double-value, but somehow it does not take my statements. This is what I got:
public double getDouble()
{
return aDoubleValue;
}
public double getAnothertDouble()
{
return aDoubleValue2;
}
public void myMethod(MagicObject a)
/*
Some magic
*/
//Here lies the problem: (FX is a doublevalue, and by it self FX/a.getAnotherDouble() gives this value: 1.541900433861831E-6, when printed. a.getDouble = 0 when printed
double ad = (double)(a.getDouble()+(FX/a.getAnotherDouble()));
}
So.. when i try to set what "ad" is I always get the value of a.getDouble(), and not the value of what i want.
Any help?
Edit:
Ohh, yeah, i got a set method for those too.