Previous Page | Next Page

Functions and CALL Routines

LOG2 Function



Returns the logarithm to the base 2.
Category: Mathematical

Syntax
Arguments
Examples

Syntax

LOG2(argument)


Arguments

argument

specifies a numeric constant, variable, or expression.

Range: must be positive.

Examples

SAS Statements Results
x=log2(2.0);
1
x=log2(0.5);
-1

Previous Page | Next Page | Top of Page