01-30-2013 08:58 AM
I`m trying to convert decimal values to character. But i can not preserve the decimal values.
For example, 0.0078 shows up as 0.
Is there anyway i can preserve the exact decimal places after converting to character?
01-30-2013 09:02 AM
You should supply a bit more information about what you did that did not work, what you have and what you want, that sort of thing.
01-30-2013 09:26 AM
This is the dataset. A is numeric.
I need to convert this numeric variable to character. 'A' should be a character in my output.My output should be
I tried A1=put(A,$6);
01-30-2013 09:14 AM
This would be one way:
length y $10;
x = 0.03456;
y = put(x, 10.4);*I arbitrarily selected 4 decimal...which means 10.4 format allows for 10 characters, from which 4 are the decimal part;