You need to sign in to do that
Don't have an account?
shan876
Illegal assignment from Double to Integer?????
Hi Happy Holidays...
I have a number(5,2) field and when I try to update it through apex code I get the following statement
I have it written like so:
Integer intg=pos.Days_Pend;
intg='1.0';
Does anyone know how to fix this??
I have a number(5,2) field and when I try to update it through apex code I get the following statement
Error: Compile Error: Illegal assignment from Double to Integer |
I have it written like so:
Integer intg=pos.Days_Pend;
intg='1.0';
Does anyone know how to fix this??
Is that what you are interested in?
public void cube()
{
res2=math.pow(n,3);
system.debug('the value of cube is----'+res2);
}
}
but the error :Illegal assignment from Double to Integer