Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Retaining Trailing Zero In a Number Column?
DTS wrote:
> Hey group,
> This is probably a common question, but searching through the docs
> has revealed nothing. If I have a field in my table that is intended
> to be used as a price and I'm using the Number datatype [Number(8,2)],
> how can I keep the trailing zero on my prices (140.50 --> 140.5)
Unless specified otherwise, Oracle (the engine) will provide this as a raw 'number' to the front end. You need to format the result in the front end, and that formatting will potentially be handled differently in different front end utilties.
Some alternatives:
YMMV
Hans
Received on Wed Apr 23 2003 - 17:54:31 CDT
![]() |
![]() |