Returns the result of a division that handles special missing values for ODS output.

Category: | Arithmetic |

The DIVIDE
function divides two numbers and returns a result that is compatible
with ODS conventions. The function handles special missing values
for ODS output. The following list shows how certain special missing
values are interpreted in ODS:

The following
example shows the results of using the DIVIDE function.

data _null_; a = divide(1, 0); put +3 a= '(infinity)'; b = divide(2, .I); put +3 b=; c = divide(.I, -1); put +3 c= '(minus infinity)'; d = divide(constant('big'), constant('small')); put +3 d= '(infinity because of overflow)'; run;

Copyright © SAS Institute Inc. All rights reserved.