dcsimg
Double to Integer
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Depending...

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