I have following double value: 8.943 need to convert(cast) into int e.g: 8.943*1000000 = 8943000 required value --> 894
double
8.943
int
8.943*1000000 = 8943000
894
double myDouble = 8.943 int myInt = (int) (myDouble * 1000000)
Using (int) casts the double into an int