function isInt(n){
return Number(n) === n && n % 1 === 0;
}
function isFloat(n){
return Number(n) === n && n % 1 !== 0;
}
x = 1; x===parseInt(x); // true
x = "1"; x===parseInt(x); // false
x = 1.1; x===parseInt(x); // false, obviously
// BUT!
x = 1.0; x===parseInt(x); // true, because 1.0 is NOT a float!
number = 25.9
check_int = isinstance(25.9, int)
print(check_int)
OUTPUT
False
check_float = isinstance(25.9, float)
print(check_float)
OUTPUT
True