How to customize number format in freemarker?

前端 未结 5 502
渐次进展
渐次进展 2021-01-13 17:45

I am using freemarker and trying to display numbers in this format: $3,343,434.00 for example. This was easily taken care of by using ${total?string.curre

5条回答
  •  野的像风
    2021-01-13 18:03

    How about taking a mod of your number, convert it to the required string format and finally add a '-' prefix to the final string. You can retain the default format in just two steps.

提交回复
热议问题