Crystal Reports for Eclipse Designer Guide

Divide operator

Usage
x/y
Divides value x by value y.
Examples
25/5
Returns 5
1/3
Returns .333333
{file.SALES} / {file.FORECAST}
Returns .875, where {file.SALES} = 52533, {file.FORECAST} = 60000
{file.DAYSDUE} / 5
Returns 22, where {file.DAYSDUE} = 110

Note: If the denominator = 0, the report will be halted with a divide by zero protection. If you want to avoid this type of problem, you should put a test in.
The following example is applicable to Crystal syntax:
If {file.FORECAST} = 0 Then
     0
Else
     {file.SALES} / {file.FORECAST}



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/