Tips:Derivation of Mathematical Constants in SAS
Mathematical constants are needed in some conversion calculations. In older versions of SAS, either complicated formulas must be used to calculate these constants or a standard value must be supplied.
However, with the constant function in SAS, some mathematical functions can be derived directly. Below is an example for the constant PI.
data _null_; pi = constant('pi'); put pi=; run;
Submitted by Murphy Choy. Contact me at my Discussion Page.