Tag Archives: integers

How to determine whether input is integer

The easiest and fastest way to check if a variable is an integer independently of its format is to compare the input with its rounded version, for example: x==floor(x) If we are just interested in knowing if the input is an … Continue reading

Posted in Sin categoría | Tagged , , | Leave a comment