Hello everyone,
I have some problem with one variable. Some values are shown with 'e' , with scientific notation. I tried to format with best32. but it does not work. Could you please suggest any solution to this problem?
Thank you in advance
As soon as the exponent goes beyond 31, you will get the scientific notation; just run this for illustration:
data test;
format number best32.;
do i = 1 to 33;
number = 10 ** i;
output;
end;
run;
You can also see how, from a given exponent, the limits of numeric precision kick in and create artifacts.
Hi,
Please provide some sample data and equivalent sample output, as well as the code used to create the output from the input. Please use the formatting tools provided to post code and data.
If you are reading from Excel then it is possible the scientific notation is what the raw data looks like.
Kind regards,
Amir.
As soon as the exponent goes beyond 31, you will get the scientific notation; just run this for illustration:
data test;
format number best32.;
do i = 1 to 33;
number = 10 ** i;
output;
end;
run;
You can also see how, from a given exponent, the limits of numeric precision kick in and create artifacts.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.