首页 > 其他 > 详细

在freemarker中,价格 怎么将¥100变成 ¥100.00

时间:2016-06-28 10:38:41      阅读:122      评论:0      收藏:0      [点我收藏+]

${tempNum?string.currency}或${tempNum?string(“currency”)} à结果为¥20.00
${tempNum?string. percent}或${tempNum?string(“percent”)} à结果为2,000%

详细:http://my.oschina.net/u/2297250/blog/367741

亲自试验过,${productEntity.costPrice?string.currency}  currency  能自动四舍五入

在freemarker中,价格 怎么将¥100变成 ¥100.00

原文:http://www.cnblogs.com/liduanwen/p/5622317.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!