Solved

Stored Procedure passed to Crystal is rounding decimal places

Posted on 2014-03-06
3
344 Views
Last Modified: 2014-03-08
I have a stored procedure.  When I run it on SQL server I see all 5 decimal places.  However, when I bring the data from this stored procedure into my crystal report, the data is being rounded to 2 decimal places.  I have formatted the field on the report to show 4 decimal places, but all I see is the rounded number.  Any idea on how to see 4 decimal places on my report?
0
Comment
Question by:maverick0728
[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
3 Comments
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 39910758
Are you using any kind of conditional formatting on the field?  There's an issue in Crystal Reports where the default number of decimals (typically 2) supercedes conditional formatting for the number of decimal places.  I ran into this when I was trying to conditionally show 4 decimals for some records and 2 for others.  I had to first set the default number of places to 4 then conditionally change the value based on my business rules.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39910995
Do you also have the rounding set to 4 decimals?

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 39914869
Rhinok also made that suggestion.  You should have accepted his comment as the answer
I can reopen the question so you can change the answer you acceted
p
mlmcc
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

729 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