struts2 格式化数字,可扩展四舍五入
struts.properties中添加
FormatNumeral={0,number,##0.00}
页面中
<s:i18n name="struts"><s:text name="FormatNumeral" ><s:param value="%{amount*100.00/quantity}"/></s:text></s:i18n>发布时间: 2012-09-22 21:54:54 作者: rapoo
struts2 格式化数字,可扩展四舍五入
struts.properties中添加
FormatNumeral={0,number,##0.00}
页面中
<s:i18n name="struts"><s:text name="FormatNumeral" ><s:param value="%{amount*100.00/quantity}"/></s:text></s:i18n>