while (abs($num/$guess - $guess) > 1e-15) {