04-26-2016 10:07 AM
Is there a way to change all the numeric variables in a data set to 2 decimals, without defining one by one? They have difference lengths, but I hope they all have max 2 decimals
04-26-2016 12:17 PM
Sample data with working program to read and format as it is now would be helpful. Plus an example data set of the result you desire.
@Reeza suggested the easy solution just format all the variable with W.2 where W is big enough for all values.
You're still a bit light on the details.
04-26-2016 10:45 AM
By Change, do you mean just format the output to look like it has 2 decimal places, or change the underlying value to have only two decimal places, then you would need the round() function.
Need further help from the community? Please ask a new question.