File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to format the price of a product specified in Indian Rupees

 
deepan thiagu
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai everyone,

I need to format the price of a product specified in Indian Rupees.
The format used here in India is
Rs. 1,00,00,000 = 1 crore = 10 million = 10,000,000 (in the western format)

But when I try with f:convertNumber with type="currency" it always format like this 10,000,000

How can I achieve this?

The code I tried is as follows:

Can any one help me on this issue?

by
Thiagu.m
 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add pattern attribute to convertNumber tag.

pattern="#,##,##,##,##0.00"
or
locale="en_GB"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic