Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

decimals formatting

Status
Not open for further replies.

unknownly

Programmer
Jul 7, 2003
181
US
Hi All,


I have report where I show the the amount based on source field.

So, In source field we have few rate's type then I should be display the amount in 10 decimal format else just the regular amount for other source type.

How can I display amount colum as
1.0000000000
0.0000000450 .. so on when there is a tax rate or exchange rate as a source field.


Any help is greatly appreciated.

Thanks in Advance,

Sweetie

 
Right click on the number field and go to format field->number->customize->decimals->x+2 and enter:

if {table.source} in ["tax rate","exchange rate"] then 10 else 2 //assuming that for other sources you want only 2 decimals

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top