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!

Formatting Amount

4183458May 16 2020 — edited May 17 2020

Hi All,

We need to add thousand separator in amount field. We used to_char(column_name, 'FM999,999,999,99'). This works fine when we have amount >=1.

It gives issue for less than one. For example, if value is 0.01, it results in .01 and if value is 0, then 0. Can someone help me? we need in below way

1234567.89 = 1,234,567.89

0.01 = 0.01

0 = 0

Comments
Post Details
Added on May 16 2020
8 comments
2,918 views