![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/06/2009, 09:38
|
| | Fecha de Ingreso: abril-2007
Mensajes: 9
Antigüedad: 17 años, 9 meses Puntos: 0 | |
Respuesta: quitar redondeo / aproximacion decimal automatica en php <?php
$valor1 = "1.5";
$valor2 = "1.5";
$total = (FLOAT)$valor1 + (FLOAT)$valor2;
$total = (FLOAT)$total;
echo $total;
?> |