Exponential puzzler

  • From: "Robertson Lee - lerobe" <Lee.Robertson@xxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 27 Feb 2012 13:06:23 -0000

Guys,
 

Anyone had to convert an exponential number to a proper decimal number ?

 

Ive got a varchar2 field which holds an exponential number as a string
and need to get it out as a real number....

 

e.g

 

select popularity from lee1;

 

returns

 

8.912655903259292E-5

 

I would have thought a simple 

 

select to_number(popularity) from lee1;

 

would work but it returns exactly the same. 

 

I know I can format it in SQL*Plus but this is actually part of an
application and I need to update a table with the numeric value of the
exponential string.

 

TIA 

 

Lee

 

***************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be legally
privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank You.
****************************************************************************

--
//www.freelists.org/webpage/oracle-l


Other related posts: