Solved

Crystal Report surpress decimal

Posted on 2014-12-11
2
268 Views
Last Modified: 2014-12-11
Hello,

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

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

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

Thanks,
Joel
0
Comment
Question by:Genius123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

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

Author Closing Comment

by:Genius123
ID: 40495181
Thanks Ido!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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