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!

format number after decimal

896976Nov 18 2013 — edited Nov 18 2013

this column is defined like this

studuent_gpa  number(23,9)

I have a student

with this gpa

select studuent_gpa

from gpa

where student_id = 117254

3.816666667

I just want to dispay

3.816

I do

select studuent_gpa,'99D999')

from gpa

where student_id = 117254

and it rounded, I don't need to rounded just display the three numnbers after the decimal point

I try diffrent formats and it always rounded

I need to display 3.816

Thank you 

This post has been answered by chris227 on Nov 18 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2013
Added on Nov 18 2013
5 comments
480 views