codice:Math.roundDec = function (num,decPlaces) { return (Math.round (num*Math.pow(10,decPlaces)))/Math.pow(10,decPlaces); } numero = 94.343928 trace(numero); trace(Math.roundDec(numero,2))
codice:Math.roundDec = function (num,decPlaces) { return (Math.round (num*Math.pow(10,decPlaces)))/Math.pow(10,decPlaces); } numero = 94.343928 trace(numero); trace(Math.roundDec(numero,2))