Which way is better for removing float decimals places or is there a more efficient way?
Rounding is not important, i am interested in displaying the number
Float number;
1- int wholeNumber= Convert.ToInt(number);
string display=wholeNumber.ToString();
2- string [] splitNumber= number.ToString().Split('.');
string display=splitNumber[0];