The following statements are true about automatic conversion:
It produces a numeric missing value from any character value that does not conform to standard numeric notation(digits with an optional decimal point, leading sign, or scientific notation)
Hello @PaigeMiller ,
Unfortunately that extremely confusing wording is in the SAS documentation.
Here it is: https://go.documentation.sas.com/doc/en/pgmsascdc/v_015/lepg/n04koei84kuaodn1g21eyx4btome.htm
Click on:
Example: Use Automatic Type Conversions
and scroll a bit down to "Key Ideas" section.
As far as I know "digits with an optional decimal point, leading sign, or scientific notation" are standard numeric notation but the sentence is indeed written in such a way that one suspects the opposite. In other words, sentence is counter-intuitive to read.
Here's automatic conversion with a leading sign (a + sign):
data _NULL_;
a='+1.23';
b=a*1.0;
put b=;
run;
Kind regards,
Koen
There is no context here, we don't know what SAS function or statement this is referring to, we don't even know it is referring to SAS. Can you please provide some context?
It's still not clear to me what question is being asked, and if true/false is the desired answer.
Furthermore, I find this wording extremely confusing:
The following statements are true about automatic conversion:
It produces a numeric missing value from any character value that does not conform to standard numeric notation(digits with an optional decimal point, leading sign, or scientific notation)
Is "digits with an optional decimal point, leading sign, or scientific notation" being the conditions that "does not conform to standard numeric notation"? Or is "digits with an optional decimal point, leading sign, or scientific notation" being the conditions that DO conform to standard number notation?
All around, a horribly worded question, which I decline to spend more time on.
Hello @PaigeMiller ,
Unfortunately that extremely confusing wording is in the SAS documentation.
Here it is: https://go.documentation.sas.com/doc/en/pgmsascdc/v_015/lepg/n04koei84kuaodn1g21eyx4btome.htm
Click on:
Example: Use Automatic Type Conversions
and scroll a bit down to "Key Ideas" section.
As far as I know "digits with an optional decimal point, leading sign, or scientific notation" are standard numeric notation but the sentence is indeed written in such a way that one suspects the opposite. In other words, sentence is counter-intuitive to read.
Here's automatic conversion with a leading sign (a + sign):
data _NULL_;
a='+1.23';
b=a*1.0;
put b=;
run;
Kind regards,
Koen
You can send feedback to the documentation team by clicking on the FEEDBACK link in the page header. They are very responsive.
I am not sure there is much confusion in the sentence you quoted.
How else would you describe a string that represents a number?
But if you can suggest clearer wording I am sure they would appreciate it.
When reading any of the documentation pages it is in the upper right.
I'm going out on a limb and guessing that means a + or - (minus) before the rest of the value
This sounds like a True/False question in a quiz or similar.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.