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!

Prevent CR 9.0 from rounding up

Status
Not open for further replies.

harding1031

Programmer
Oct 21, 2004
65
US
I am performing a calculation that does not require rounding up, but it appears CR is doing this by default. How do I prevent this. When I calculate 25.23 * 60, the result in CR is 1514.00, but on my calculator it is 1513.8. I need to the value in CR to be 1513.8. TIA.
 
Set the number of decimal places to be 1 or more so that it will display the number that way.

The caveat there is that any nummbers that calculate out to a whole number will display with zeroes in the decimal places.

~Brian
 
Right-click and check the format. Crystal allows for the rounding to be different from the number of decimal places shown.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
hi, even i have a similar prob. my no., of decimal places is 0.1 and wanted to give 0.000001 for rounding. after i select that and say ok, my changes are not effected. it still says o.1 near rounding.
thanks,
Kavitha.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top