that is floating point math, use javascript's numObj.toFixed([fractionDigits])method, seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/dninstj/html/primitivetypeconversion.aspso in your case, you want to do YourNumber.toFixed(2)
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货