Return to Snippet

Revision: 45879
at May 10, 2011 17:30 by ions


Initial Code
function arrondi(pNum:Number,pNbApresVirgule:int):Number {
   return Math.round( pNum * Math.pow(10, pNbApresVirgule)) / Math.pow(10, pNbApresVirgule);
}

Initial URL


Initial Description
Arrondir un chiffre, à n chiffre après la virgule

Initial Title
Arrondir un chiffre

Initial Tags
actionscript

Initial Language
ActionScript 3