That strikes me as a better test then x!H ПЛАГИН БЕСКОНЕЧНЫХ ПАТРОНОВ В КС ГО [C#] A TextBox that only accepts decimal/floating/double numbers Scanf is not your friend, here. Even if you check the result to ensure that you read one whole argument successfully, that doesn't really guarantee that the input is valid in a meaningful sense. Given input like: 1!!!1!oneone! I want to enter a number, float for example and input should be checked if is a float or not. I'm using this snippet found online. is going to try to read a valid float, even if there is bad trailing information after it. How to check floating point value in csgostepthebest.com? C program to check if a valid floating point number with the combinations of 0's and 1's entered or not. How to Print alternate Even And Odd Number using Linq?