round by (int), where (int) is a strong conversion, forcing other types to be converted into integers.
syntax:
int b =(int) floating-point variable;
for example: double? a? =? 1.22;
int? b=(int)a; //cast double to integer. , rounded, the result is 1.