Format Decimals


/ Published in: ActionScript 3
Save to your folder(s)

Usage:
formatDecimals(3.1415926, 3);
returns: 3.141.
Also adds zeros to end if needed.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.