/**
* 钱分割
* @param sMoney 金钱
* @param sParting 分割符
* @param iMax 每几位数分一组
* @return
*/
public static function moneyParting(money:int, sParting:String = ",", iMax:int = 3):String
{var iMoney:String, sMoney:String = money.toString();var iN:int, iLen:int = sMoney.length;
for (var i:int &#61; iLen; i > 0; i -&#61; iMax){iN &#61; i - iMax;if (iN <0) iN &#61; 0;iMoney &#61; sMoney.slice(iN , i) &#43; (iMoney ? (sParting &#43; iMoney) : "");} return iMoney;
}