/ Published in: ActionScript 3
Expand |
Embed | Plain Text
function roundOff ( value : Number, decimalPlaces : int ) : Number { var k : int = Math.pow ( 10, decimalPlaces ); value *= k; value = Math.round ( value ); return value / k; }
You need to login to post a comment.
