Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: number format (.5 instead of 0.5)

Re: number format (.5 instead of 0.5)

From: Ranga Chakravarthi <ranga_at_removethis.cfl.rr.com>
Date: Tue, 24 Sep 2002 23:56:38 GMT
Message-ID: <WY6k9.29480$R8.1080955@twister.tampabay.rr.com>


If you are doing this in SQL*Plus, use the format option for the column to display:

SQL> create table number_test (a number);

Table created.

SQL> insert into number_test values (.5);

1 row created.

SQL> col a format 999,990.99
SQL> select * from number_test;

          A


       0.50

SQL> col a format 999,990.9
SQL> select * from number_test;

         A


       0.5

"Tino Korth" <newsgroup_at_tk79.de> wrote in message news:ampa2j$3tp$1_at_nntp-m01.news.aol.com...
> Hello,
>
> I've got a float field with the value ".5" (I've insertet a "0.5"-value,
> but Oracle formats the value to ".5").
> How can I "re"format the float when I'm SELECTing this value? I wanna
> have "0.5" as a return value.
>
>
> Greetings from Rostock, Germany!
>
> Tino
>
> --
> Tino Korth Registered Linux User #286417
> www.tinokorth.de - ICQ 10771191 http://counter.li.org
>
>
Received on Tue Sep 24 2002 - 18:56:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US