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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting currency zeroes

Status
Not open for further replies.
Jul 21, 2001
102
US
Is there a way to format cents in currency so that

$250.41 appears as $250.41
but
$250.00 appears as $250

This will be used in a narrative not a financial report so it's just a matter of appearance.
 
Infobabe,

Format your field. Select Custom Style in the Number tab, and press Customise - or Customize as the Americans insist on spelling it.

Decimal and Rounding should already be set to two decimal places.

Hit Decimal's x2 button, and slip this in:

numbervar zerofix := remainder(CurrentFieldValue,int(CurrentFieldValue)) ;
if zerofix = 0 then 0
else if remainder(zerofix*100,100) = 0 then 1
else 2

Naith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top