| CODE |
nb = 14.90; ... document.write('nb = ' + nb); |
Problème il m'affiche :
| CODE |
14.9 |
hors je voudrais qu'il m'affiche
| CODE |
14.90 |
Comment faire?
Merci d'avance pour toute aide!
| CODE |
nb = 14.90; ... document.write('nb = ' + nb); |
| CODE |
14.9 |
| CODE |
14.90 |
| CODE |
| function OKStrOfPenny(X) { var T, S = new String(Math.round(X*100)) while(S.length<3) S = '0' + S return S.substr(0, T=(S.length-2)) + '.' + S.substr(T, 2) } |