Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding error

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
I am using Crystal Reports 10.
I view the query my report is using and when I run it through Query Analyser it shows the values to be 3.5
But when the value is placed in the details area, it is displayed as 4.00
I have formatted the field by clicking Format Field -> Customize.
Decimal 1.00
Rounding 0.01
Not sure why it is not displaying 3.50?
 
Makes no sense, it definitely should work.

First try checking the data. In field explorer, you can right-click on a field and say 'browse data'. Maybe it is somehow coming out different.

Or is there some intermediate?

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Howdy Madawc,
That is what I thought. It should work.
When I view the query the form is using it shows 3.5.
I did a formula and converted it to a string and printed it out and it comes out as 4.0.
I am going to play with changing my query to import the value into different fields (AS newValue1) and play with that value. I will post my solution when I find out what is happening.
ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top