Double to Integer
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Sunday, June 30, 2002 07:29 PM

Please tell me how to convert a Double value to an Integer

Re: Double to Integer

Posted By:   Dave_Pellatt  
Posted On:   Monday, July 1, 2002 08:07 AM


double d = 55;
int i = (int) d;

Double dd = new Double(55);
Integer ii = new Integer(dd.intValue());

Hope that helps,

Dave Pellatt

About | Sitemap | Contact