As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips:Derivation of Mathematical Constants in SAS

From sasCommunity
Jump to: navigation, search

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.

....see also

....see also