grails - formatting numbers as currencies -


I used the g: formatNumber tag to format a number as currency

  & lt; G: formatNumber number = "$ {it.price}" type = "currency" currency CODE = "$ {it.currency}" />   

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.

  & lt; G: formatNumber number = "$ {myNumber}" format = "your format is here" />   

See and

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -