Check out example codes for "double round java integer". It will help you in understanding the concepts better.

Code Example 1

int a = (int) Math.round(doubleVar);

Learn ReactJs, React Native from akashmittal.com