/ Published in: ActionScript 3

Arrondir un chiffre, à n chiffre après la virgule
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function arrondi(pNum:Number,pNbApresVirgule:int):Number { return Math.round( pNum * Math.pow(10, pNbApresVirgule)) / Math.pow(10, pNbApresVirgule); }
Comments
