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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rounding of values 1

Status
Not open for further replies.

swetham

Programmer
May 5, 2010
257
DE
How to Write a formula to round of the value to 3 0r 2 decimals based on a condition?

 
Do you mean, either 3 or 2? Then it would be something like
Code:
if @condition then Round({your.value}, 3)
else Round({your.value}, 2)

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top