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!

convert scientific notation to number in oracle sql

Latha00Oct 28 2024

Hi all,

I have data like this, so i need to convert it into actual number (0.000004 ).

I used to to_char(order_rate) and i need to use round function this as well

how to convert scientific notation to number in oracle sql?
Note: we need to print 8 digits after the decimal point as well.
Oracle 19c

CREATE OR REPLACE FORCE VIEW xxc_test(order_rate)
as
select 1/250000 order_rate from dual
union all
select 1/3.675415  from dual;

select * from xxc_test 

Output
========
4E-5
0.272317790199082
This post has been answered by mathguy on Oct 28 2024
Jump to Answer
Comments
Post Details
Added on Oct 28 2024
8 comments
1,527 views