Solved

# Rounding issue

Posted on 2013-01-25
Medium Priority
191 Views
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
Question by:mowit
[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
• 3
• 2

LVL 143

Expert Comment

ID: 38820300
http://crystaltricks.com/wordpress/?p=163
0

Author Comment

ID: 38820317
AnelIII, I need to do this in a formula, therefore this link doesn't help.
0

LVL 143

Expert Comment

ID: 38820347
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

Author Comment

ID: 38820383
Crystal shows the field is of datatype number.
0

Author Comment

ID: 38820404
Just looked at the XSD and the field is listed as decimal.
0

LVL 101

Accepted Solution

mlmcc earned 1000 total points
ID: 38821170
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

Question has a verified solution.

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

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. …
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
###### Suggested Courses
Course of the Month8 days, 7 hours left to enroll