I use the following code in php
to check if the number is integer:
$qtd_bo = "1.20";
if (!preg_match('/^[1-9][0-9]*$/', $qtd_bo)) {
echo "Não é inteiro";
}
It returns me that number 1.20 is not integer. Until then, okay.
The problem is that if I put 1.00 it tells me that it is not integer.
I need to check if there is any value after the "."