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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Number format (trailing zeros)

JackKMay 29 2011 — edited May 30 2011
Hi,
I'm confused with number formats. Please someone to explain me that.
I thought that:
SELECT to_char(1230, '9,999.99') AS frm FROM dual;
would result in
FRM
-----
1,230
but the result is
FRM
--------
1,230.00
Why are the trailing zeros there? The format is not '9,999.00'.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 27 2011
Added on May 29 2011
8 comments
50,018 views