Return to Snippet

Revision: 7693
at August 6, 2008 14:21 by FlashJunior


Initial Code
function formatNumber(aN:String):String {
	return (aN.length == 1 ? "0" : "") + aN.substr(0,aN.length - 1) + "" + aN.substr(aN.length-1);
}
trace(formatNumber("9");

Initial URL

                                

Initial Description

                                

Initial Title
Formating Number: 9 into 09

Initial Tags

                                

Initial Language
ActionScript