Skip to Main Content

Oracle Database Discussions

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!

How to avoid Automatic Rounding of number column?

dba-indiaJan 17 2011 — edited Jan 18 2011
In 10g 10.2.0.4 database I am seeing the below automatic rounding issue. How can I remove this automatic rounding.

create table test (a number(28, 12))

insert into test values (7051743.889999999665)

select * from test

Result:
7051743.89

But I want the result as what I entered i.e. 7051743.889999999665 so please guide how can I achieve this.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2011
Added on Jan 17 2011
4 comments
2,857 views