Validate Integer

Check if a value is an integer.

Code

Utilities
try:
    return int(value) == float(value)
except ValueError:
    return False

Parameters

Value to validate.

Server

More Python Snippets