no, sigue haciendo lo mismo...uso tales valores:
999999999999999 + 9.9 = 1.0E+15
Código PHP:
Ver original<?php
if(isset($_POST['algo'])) { $num1 = $_POST['num1'];
$num2 = $_POST['num2'];
$res = $num1 + $num2;
$res = (string)$res;
}
?>
<body>
<form id="form1" name="form1" method="post" action="">
<label>
<input type="text" name="num1" id="num1" />
</label>
<p>
<label>
<input type="text" name="num2" id="num2" />
</label>
</p>
<p>
<label>
<input type="submit" name="algo" id="algo" value="Enviar" />
</label>
Resultado:
<?php if(isset($_POST['algo'])) { echo $res; } ?> </p>
</form>
</body>
</html>