Hi
I use commas as standard decimal point. It's important when you work with export to excel (swedish version) from WRS. I want to use a format like Best-format, where I exchange dot with comma. I could use the NUMX-format, but then I'll get decimals even for the integer (which stands for 90 % of the values). I want to suppress the decimals when it is a integer, just like the best-format. How do I solve that, without creating a char?
Code:
data test;
x = 4.5;
y = 4.5;
z = 4.5;
output;
x = 4;
y = 4;
z = 4;
output;
format x best. y numx. z numx6.1;
run;
proc print;run;
Result:
x y z Expected
4.5 5 4,5 4,5
4 4 4,0 4
Message was edited by: RoseBowl