Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to format NUMBER(8,4) to '0000.0000' output??
Well, nvl(to_char(COLA, '0000.0000'),' ') does the trick. Why
do you need the LPAD ?
system_at_TREINA01> create table besta ( numero number(8,4) );
Table created.
system_at_TREINA01> insert into besta values (1973.234);
1 row created.
system_at_TREINA01> select to_char(numero,'0000.0000') from besta;
TO_CHAR(NUMERO,'0000.0000')
![]() |
![]() |