Posted By

ions on 05/10/11


Tagged

actionscript as3


Versions (?)

Arrondir un chiffre


 / Published in: ActionScript 3
 

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

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

Report this snippet  

You need to login to post a comment.