Solved

Rounding issue

Posted on 2013-01-25
6
187 Views
Last Modified: 2013-03-21
I am trying to multiple a field. It's value is 0.0004932 in a formula, Crystal Reports keeps rounding that value to 0. If I do ToText(myfield, 10) It doesn't allow me to multiple the result as it is now a string. Can someone please help ? All I want to do is just multiple the original value of 0.0004932 within a formula without Crystal Reports converting.
0
Comment
Question by:mowit
  • 3
  • 2
6 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
I presume that this page will help:
http://crystaltricks.com/wordpress/?p=163
0
 

Author Comment

by:mowit
Comment Utility
AnelIII, I need to do this in a formula, therefore this link doesn't help.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
a formula will retain the data type precisions used, so you need to make sure your input variables are indeed decimal.
other than that, it's only display format issues.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:mowit
Comment Utility
Crystal shows the field is of datatype number.
0
 

Author Comment

by:mowit
Comment Utility
Just looked at the XSD and the field is listed as decimal.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
I agree with the above comment.  The values are saved but when you display them they may get rounded.  

Are you displaying the field on the report?
Did you formt it for more than 4 decimal places?
Did you set the rounding so it rounds at 5 decimals or more?

Right click the field.
You should see a NUMBER tab as the displayed tab.
If you don't then it is not a number
If you do select the appropriate format or choose custom to set the appropriate format.

Try using a fixed formula like
10000 * {@YourFormula}

mlmcc
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now