grails - formatting numbers as currencies -
I used the This prints a formatted number such as GBP6.87 Is there a way that I can customize Can I do this? Specifically, I would like to be a place between currency names and zodiac sign, i.e. GBP 6.87 You can specify your own format string which you want. See and g: formatNumber tag to format a number as currency
& lt; G: formatNumber number = "$ {it.price}" type = "currency" currency CODE = "$ {it.currency}" />
& lt; G: formatNumber number = "$ {myNumber}" format = "your format is here" />
Comments
Post a Comment