Title: RE: Forcing 2 Decimal Positions

Or if your question was relating to the COLUMN ... FORMAT SQL*Plus command, 99 works for me (again my decimal separator is "," because of local settings) using SQL*Plus 8.1.7

SQL> column price format 90D99
SQL> select 20 as price from dual
  2  union all
  3  select 20 / 3 as price from dual
  4  union all
  5  select 20 / 8 as price from dual
  6  union all
  7  select 20 / 16 as price from dual
  8  union all
  9  select 20 / 32 as price from dual ;

 PRICE
------
 20,00
  6,67
  2,50
  1,25
  0,63
 
> -----Original Message-----
> From: Burton, Laura L. [mailto:[EMAIL PROTECTED]]
>
> I know this must be extremely simple, but the only thing I
> can find for this is column format and that doesn't work, so
> could someone tell me how to force an amount field to show 2
> decimal positions?  I have tried format 999.99 and 990.00 but
> it will not print the zero if it is after the decimal ( i.e.
> 100.5  or  88 ).  I know I have done this before but I guess
> I have gone brain dead.
>

Reply via email to