Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

thousand seperator

Status
Not open for further replies.

uparna

Technical User
Jun 27, 2001
182
IN
I have a varchar2 field that has data like
'100000 out of 400000' , '100 out of 100000' etc. Now i have to format it as '1,00,000 out of 4,00,000' '100 out of 1,00,000' etc. Actually , i am myself creating this text field : ie i have 2 numeric variables that are concatenated with 'out of' to get the text string that is stored in the database. The numeric variables are calculated inside a SP. Any idea how i can achieve this? In the number format methods that i have seen in to_number etc , we have to specify the number of digits before and after a ',' .... and these numbers can range from 1 to a few billions. :( . Any ideas?

Regards,
S. Jayaram Uparna .
:)
 
stupid me : ans is trim(to_char(var_name,'999,999,999,999'))

Regards,
S. Jayaram Uparna .
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top