Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to display negative values within parenthesis using <display:column > ?  RSS feed

 
antsi klando
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get the negative values displayed within parenthesis using <display:column format="$ {0,number,###,###,###,###.00}">.
If for example,the values are positive,the value should be $ 12.32,else $ (12.32).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!