Solved

Crystal reports - parameter decimal positions

Posted on 2013-06-04
4
879 Views
Last Modified: 2013-06-05
I want the users to be able to enter a parameter of .005 (or whatever it will be). The number would always have 3 decimal positions. When this is entered it comes in as .01. How can this be corrected?
0
Comment
Question by:qbjgqbjg
[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
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39219838
How do you know it comes in as 0.01?

Drop it on the report
Right click it
Click FORMAT OBJECT
Choose a format with at least 3 decimals or use CUSTOM

If you choose to customize
Set decimals to 1.000 and rounding to 0.001

mlmcc
0
 

Author Comment

by:qbjgqbjg
ID: 39219932
I had already tried that. It shows as 0.010 when formated with 3 decimal positions.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39220366
Did you also change the rounding?

mlmcc
0
 
LVL 35

Accepted Solution

by:
James0628 earned 500 total points
ID: 39221604
If you put the parameter on the report and change the decimals and rounding for that field to 3 places, then if you enter .005, you should see .005 on the report.  That works here.

 However, if you refresh the report, the parameter screen may round that to .01, and if you don't change it back to .005, the report will get the rounded value (.01) when it refreshes.

 When you run reports from CR 10, the format for number parameters comes from the default number format in CR.  I'm guessing that CR XI is the same.

 If you're running the report from CR, instead of a viewer or some other app, go to File > Options, select the Fields tab and click Number.  Select the Number tab and change the number of decimals and rounding there to 3, then OK your way out of those screens.  The next time you refresh the report, the parameter should show 3 decimal places.

 The problem is that you're changing the default that will be used for all number parameters and new numeric field formats in every report.  When you run any report with a number parameter, it will have 3 decimal places, and when you add a numeric field to a report, it will default to having 3 decimal places.  But that's the only way I know to change the parameter format.

 James
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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
C# Infragistics UltraGrid - Export to Excel 2 185
Crystal Reports 9 and Subreports 3 89
Pagination Difference  in crystal report 7 59
Timezone help 5 19
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. …
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 …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

763 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