Crystal Report surpress decimal

Posted on 2014-12-11
Last Modified: 2014-12-11

I have a formula field in Crystal that looks like this:

if {#TotalLateWeek} <> 0 then
Round ((({#TotalLateWeek}/{#TotalCyclesWeek})*100),0 ) & "% Late"
"0% Late"

The result might be 10.00%.  I just want it to say 10%.

Question by:Genius123
LVL 22

Accepted Solution

Ido Millet earned 500 total points
ID: 40495121
if {#TotalLateWeek} <> 0 then
ToText(Round ((({#TotalLateWeek}/{#TotalCyclesWeek})*100),0 ),0) & "% Late"
"0% Late"

Author Closing Comment

ID: 40495181
Thanks Ido!

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Getting a signature to show in Crystal Reports 2 70
Crystal Reports Repeat Report Footer X amount of times 6 38
Crystal Report detail 15 51
Crystal Reports 12 40
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question