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

${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  能自动四舍五入

原文地址:https://www.cnblogs.com/liduanwen/p/5622317.html