954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Double to Integer

hello
tnx everyone this forum really helps me sometimes!
can someone please tell me how i can convert a double number to nearest integer number?

ana_eht
Newbie Poster
20 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
 

[code]int x;
double d=99.8;
x=Math.round(d);[/ode]

fatirnbd
Newbie Poster
2 posts since Apr 2010
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You