Yasin,
You can pass this to the static Floor method on the Math class.
Generally speaking though, you can use the following formula to find the
floor or ceiling for any number:
floor = round(number  0.5)
ceiling = round(number + 0.5)
Assuming that rounding will round to the next highest integer for values
of .5 and above.
Hope this helps.

 Nicholas Paldino [.NET/C# MVP]

mv*@spam.guard.caspershouse.com
"Yasin cepeci" <ce****@gmail.comwrote in message
news:em**************@TK2MSFTNGP03.phx.gbl...
Converting single to int Rounds the upper number if the part after dot is
bigger than 0,5. But I want to discard the value after dot.