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

decimal in Crystal XI

Status
Not open for further replies.

karnd

Programmer
Feb 1, 2003
190
US
Hi ,
For an amount field i should not have to ROUND it at all but need to truncate the decimal after the digit.

Eg:1000.20 should have to show as 1000
1000.75 should have to show as 1000

Thanks a lot,
 
Create a formula and pass the field to the truncate function:

Truncate({table.field})

~Brian
 
Hi,

But it does not truncate the digits after the decimals.

I tried truncate(field,0)
truncate(field,-1)
truncate(field,1)

and etc..

thanks

 
If after using the following on a field = 1000.75:

truncate({table.field})

...you are seeing 1000.00, all you need to do is select the field and click on the decrease-decimals icon to remove the decimals in the display.

-LB
 
Hi,

Great!this helps but is it a new feature available from CRXI or before also?

Thanks
regards,
 
Truncate() has been available since 8.0 and possibly earlier.

-LB
 
thanks a lot for your kind info.

regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top