Chapter 8

Mathematical and Numeric Functions

 

Introduction

Commonly Used Mathematical Functions

CONSTANT

MOD

ABS

SQRT

Functions That Work with Exponentiation and Logarithms

EXP

LOG

LOG10

Factorial and Gamma Functions

FACT

GAMMA

Miscellaneous Functions

IFN

COALESCE

 

Introduction

Most of the functions in this chapter perform basic mathematical tasks such as taking the log or exponent of a value. The MOD function is an exception. Although it is used in mathematical expressions, it has other, often overlooked, uses that will be covered here.

 

Commonly Used Mathematical Functions

Function:    CONSTANT

Purpose:    To compute numerical constants: (pi, e, and Euler's constant) and to determine various machine constants (the largest integer ...

Get SAS Functions by Example, Second Edition, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.