> How do I get the integer remainder from a double?
>
> i.e. dVariable = 13.4545;
>
> I want to return the integer part (13)
int thirteen = (int)dVariable;
See also the ceil(), floor(), and rint() methods of
java.lang.Math.

Signature
Eric.Sosman@sun.com
Mark K - 07 Dec 2004 18:32 GMT
i figured that out finally. Thanks
casting.. what a concept.. haha
> > How do I get the integer remainder from a double?
> >
[quoted text clipped - 6 lines]
> See also the ceil(), floor(), and rint() methods of
> java.lang.Math.
> How do I get the integer remainder from a double?
>
> i.e. dVariable = 13.4545;
>
> I want to return the integer part (13)
double dValue = 13.4545;
int iValue = (int) dValue;
--
Grant Wagner <gwagner@agricoreunited.com