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.

# Difference between revisions of "Tips:Derivation of Mathematical Constants in SAS"

From sasCommunity

(Scheduled May 9, 2011) |
|||

Line 15: | Line 15: | ||

{{ExternalReadMore|http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002295680.htm}} | {{ExternalReadMore|http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002295680.htm}} | ||

<noinclude> | <noinclude> | ||

− | [[Category:Tip | + | [[Category:Tip in Use]] |

[[Category:Base SAS]] | [[Category:Base SAS]] | ||

[[Category:Functions and CALL Routines]] | [[Category:Functions and CALL Routines]] | ||

[[Category:CONSTANT Function]] | [[Category:CONSTANT Function]] | ||

</noinclude> | </noinclude> |

## Revision as of 21:11, 4 May 2011

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 the 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