Private void getroundvalue ()
{
Double F value = 105.812;
// Method 1: four to five
// Double I = math. Round (fvalue, 0 );;
// Method 2: four-digit five-entry to the floating point, and four-digit five-entry type
// double I = math. round (fvalue, 0, midpointrounding. awayfromzero );
// member Name Description
// awayfromzero: when a certain number is better than the center of the other two numbers, convert the data to the nearest number in the direction toward zero.
// toeven when a number is better than the center of the other two, it is converted into an even number closest to the other.
// Method 3 get the integer directly
// The method for obtaining the integer value of the floating point is to integer the number of the floating point, multiply the integer value, and then convert it into an integer.
Int I = (INT) fvalue/1*1;
}