specify decimal places recode

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

specify decimal places recode

J McClure
How to I specify the number of decimal places for a new variable using
recode?
Thanks!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: specify decimal places recode

John F Hall
Not clear what your data look like, but why would your recoded var(s) have decimal places?  DFid you mean compute?
 
format <newvar> (f<n.n>) .
 
eg
 
format newvar (f4.2) .
 
Or do it in the Data Editor by changing the contents of the cells under Decimals.
----- Original Message -----
Sent: Thursday, August 19, 2010 4:05 AM
Subject: specify decimal places recode


How to I specify the number of decimal places for a new variable using
recode?
Thanks!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD