Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/11/2005, 12:46
Avatar de Saruman
Saruman
 
Fecha de Ingreso: mayo-2003
Ubicación: Panama city, Panama, Panama
Mensajes: 1.154
Antigüedad: 23 años, 4 meses
Puntos: 5
trata de modificar esta funcion que tengo para formatear un valor y colocarle las comas. de repente te pueda servir

Código PHP:
function formatNmb(nNmb){ 
 var 
sRes = ""; 
 for (var 
j, i = nNmb.length - 1, j = 0; i >= 0; i--, j++) 
 
sRes = nNmb.charAt(i) + ((j > 0) && (j % 3 == 0)? ",": "") + sRes; 
 return 
sRes; 
} 
me cuentas como te va
__________________
Saruman

One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them.