A lot of the answers here do not work for (string)"0.00".
Try this:
if (isset($_POST['num1']) && (float)$_POST['num1'] != 0) {
...
}
Or even more strict:
if (isset($_POST['num1']) && is_numeric($_POST['num1']) && (float)$_POST['num1'] != 0) {
...
}