O'Reilly logo

SAS Functions by Example, Second Edition, 2nd Edition by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required