how to remove decimal point on double

 
as an example how to return 10 from 10.30 . i want to just ignore decimal points
 
double x = 10.30;
int a = x;

or u can use DoubleToStr()

or NormalizeDouble()

Reason: