C# string int float code example
Example 1: float to int c#
Convert.ToInt32(float)
Example 2: what is float in c#
//whole in c# sharp is (like in a lot of languages)
//a variable that can contain numbers and fractions
//contrast int that is used just for integers