Online File

How to use this page


Rick Aster: Professional SAS Programming Logic: Contents

Chapter 15
Program
TRUNC function to compare truncated numeric values


DATA SHORT;
   A = .1;
   LENGTH A 4;
RUN;
DATA _NULL_;
   SET SHORT;
   IF A = .1 THEN PUT 'A is stored as exactly .1.';
   IF A = TRUNC(.1, 4) THEN PUT 'A is stored as approximately .1.';
RUN;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Logic

Contents/Online Files

Corrections

Catalog Page