float y = 0.04F * 100F;
int x = (int)y);
int x = (int)(0.04F * 100F);
int x = Convert.ToInt32(0.04F * 100F);
int x = (int)(0.04 * 100);
int x = (int)(0.04M * 100M);
int x = (int) 0.04D * 100D);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)