Thanks for the reply.

Figured it out the solution to handle my previous query.

Below is my code with output:

```
from decimal import Decimal
def is_int(x):
x = Decimal(x)
if abs(x) % 1 > 0:
return False
else:
return True
x = input("Enter the input:")
print (is_int(x))
```

## Output

Enter the input:5

True

Enter the input:5.1

False

Enter the input:5.0

True

Enter the input:-5

True

Enter the input:-5.1

False