The %SYSEVALF function
performs floating-point arithmetic and returns a value that is formatted
using the BEST32. format. The result of the evaluation is always text.
%SYSEVALF is the only macro function that can evaluate logical expressions
that contain floating-point or missing values. Specify a conversion
type to prevent problems when %SYSEVALF returns one of the following:
-
missing or floating-point values
to macro expressions
-
macro variables that are used in
other macro expressions that require an integer value
If the argument to the %SYSEVALF function contains
no operator and no conversion type is specified, then the argument
is returned unchanged.
For details about evaluation
of expressions by the SAS macro language, see
Macro Expressions.