Chapter Contents

Previous

Next
LOG2

LOG2



Returns the logarithm to the base 2

Category: Mathematical


Syntax
Arguments
Examples

Syntax

LOG2(argument)

Arguments

argument
is numeric.
Range: must be positive (>0).


Examples

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.