Jul 30, 2010 #1 swetham Programmer Joined May 5, 2010 Messages 257 Location DE How to Write a formula to round of the value to 3 0r 2 decimals based on a condition?
Jul 30, 2010 Thread starter #2 swetham Programmer Joined May 5, 2010 Messages 257 Location DE Sorry to post it, I got it Upvote 0 Downvote
Jul 30, 2010 1 #3 Madawc Programmer Joined Sep 5, 2002 Messages 7,628 Location GB 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) Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP Upvote 0 Downvote
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) Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP
Jul 30, 2010 Thread starter #4 swetham Programmer Joined May 5, 2010 Messages 257 Location DE Thank you for the reply, It worked. Upvote 0 Downvote