Skip to Main Content

Analytics Software

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 truncate a decimal to 2 places of a sum field

user1175345May 10 2010 — edited May 10 2010
Hi Everyone,

Hope all is well,

When exporting the query to excel, a GPA with 2 digit decimal is showing in Excel with 9 digits past the decimal.

Wanted to truncate the decimal to 2 positions in disco.

so did: TRUNC(SUM(Overall Lgpa Gpa),2) bec query is using the sum field

the sum field shows: .89 and the above calc shows .88

i tried putting ROUND around the above like this ROUND(TRUNC(SUM.....))
and got a data type error....

Your ideas and advice would be appreciated, tx.... sandra
This post has been answered by Michael Armstrong-Smith on May 10 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2010
Added on May 10 2010
3 comments
12,363 views