Ver Mensaje Individual
  #10 (permalink)  
Antiguo 03/05/2010, 09:31
Avatar de function
function
 
Fecha de Ingreso: abril-2010
Mensajes: 278
Antigüedad: 14 años
Puntos: 13
Respuesta: misterioso problema de redondeo

Cita:
Iniciado por maxwellxp Ver Mensaje
tengo q trabajar con variables:
Código PHP:
Ver original
  1. echo number_format($variable, 2)
es lo mismo, si pones una variable en lugar del numero

Código PHP:
Ver original
  1. //funcion number_format() con ceros adelante
  2. $numero = 000000.46;
  3. echo number_format($numero, 2) .'<br />';