Now we use Double for it's conviency on calculations and flexibility in precision. Like most of the time, some of us wants to take out the integral part of the output once we are finished with complicated computations. And now, we will discuss the process of converting java double to integer. Check out the examples given for extracting the integral portion from the output: