Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to change number output that uses dot [.] to coma [,]

jerry44Sep 4 2014 — edited Sep 5 2014

I've function that should change notation of numbers from 12345.67€ to 12345,67€

    select

        replace(

    to_char(round(

    123456.789

    ,2),'999G999G999G990D'||substr('0000000000',1,2),'nls_numeric_characters=''.,'''),'.',','

    ) || ' €'

    from dual;

current result is:

123,456,79 €

the result I want to get:

123456,79 €

But I' dont know how. My oracle returns values in format 123456.79 so this is a reason of my calculation. Doe's anybody know what to do? maybe there is possibility to change returned format of number without convertion in functions? It should be possible but I don't know how to do it

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2014
Added on Sep 4 2014
11 comments
13,161 views