Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF Currency Conversion

 
Ayan Afridi
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having an issue with some currency conversion in dollars.
When I use the code below, negative currencies such as "-$24,0000.00" cannot be entered. They have to be entered as "($24,000.00)". Also, negative currencies are displayed with the parentheses when retrieved from the db.



Anyone know whats up?

-Ayan
 
Ayan Afridi
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind - I figured out the answer to my question. This is because the locale that is set to "en_us" - the default negative currency format is ($X.XX). makes sense.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!