Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: do not cut decimal places
Eric Parker wrote:
> "Marek Lange" <marek.lange_at_web.de> wrote in message > news:3F02A2D0.9090902_at_web.de... >
> > > Marek > > This is a problem with the way your application is formatting the data. > You haven't supplied any information about what is doing the formatting. > > SQL> SELECT to_char(a, '9999.99') from t; > > TO_CHAR( > -------- > 9.99 > 10.00 > 10.01
I made sure that my application writes the data to the database with the correct precisions. Your suggestion seems to be fitting my needs, although I don't understand the usage of the format:
Using to_char(10000.0, '9999.99')
shows #######
Using to_char(10000.0, '99999.99')
shows 10000.00
Is there a way to generalize this for all digits?
Thanks,
-marek Received on Wed Jul 02 2003 - 04:58:16 CDT
![]() |
![]() |