Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Error: Division by zero
Author
Message
ldodge
Newbie
Joined: 24 Feb 2015
Location: United States
Online Status: Offline
Posts: 3
Topic: Error: Division by zero
Posted: 16 Oct 2015 at 10:14am
The following formula works in most circumstances except when 0/0, and I get an error "division by zero"
(({#CS Primary}) / ({#Total Deliveries} - {#VBAC Successful} - {#CS Repeat})) * 100
ex.) 0 / 4-0-4 * 100
What can I do?
IP Logged
praveeng
Senior Member
Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Posted: 18 Oct 2015 at 8:57pm
Hi,
Use below logic:
If ({#Total Deliveries} - {#VBAC Successful} - {#CS Repeat}) = 0 Then
0
Else
(({#CS Primary}) / ({#Total Deliveries} - {#VBAC Successful} - {#CS Repeat})) * 100
--Praveen G
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.