![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/08/2003, 16:35
|
![Avatar de Kaopectate](http://static.forosdelweb.com/customavatars/avatar14704_1.gif) | Colaborador | | Fecha de Ingreso: diciembre-2001 Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 1 mes Puntos: 38 | |
Hola walhu.
Dados los valores:
tot = 85;
a = 55;
Si quieres un resultado de 64% debes poner:
res = String(Math.trunc(a * 100 / tot)) + "%";
Saludos. |