Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/07/2009, 10:07
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Funcion Porcentaje Problema con cero

La funcion me esta trayendo 0.00
Código php:
Ver original
  1. function PorcentajeEdif($edificio, $total){  
  2.     $por = ($edificio * 100) / $total ;
  3.     return number_format($por,2,".","");  
  4. }
  5.  
  6. echo PorcentajeEdif(0,11264);