| Working with Numeric Variables |
A numeric variable is a variable whose values are numbers.
Note: SAS uses double-precision floating
point representation for calculations and, by default, for storing numeric
variables in SAS data sets. ![[cautionend]](../../../../common/64368/HTML/default/images/cautend.gif)
1254 336.05 -243
You can use SAS to perform all kinds of mathematical operations. To perform a calculation in a DATA step, you can write an assignment statement in which the expression contains arithmetic operators, SAS functions, or a combination of the two. To compare numeric variables, you can write an IF-THEN/ELSE statement using logical operators. For more information on numeric functions, see the discussion in the "Functions and CALL Routines" section in SAS Language Reference: Dictionary.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.