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!

to_char-function on number causes loss of leading zero

846624Mar 30 2011 — edited Mar 31 2011
Hello everybody,

I need to ask a question about the to_char method. I have number-values, which occur in the format " xxxxx,x ", which means:
- a not limited amount of leading digits
- optional a decimal point
- if a decimal point, then the numer has at most one digit afterwards

It looks okay with every kind of number, just the 0,x looks strange.
It is converted to " ,x ", e.g. 0,5 to ,5.

How do I get a proper format?
I used to_char(mynumber, 'FM90D9'), but it has always a decimal point and doesn't work for large numbers.

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 28 2011
Added on Mar 30 2011
5 comments
15,790 views