DATA Step, Macro, Functions and more

What is "Best12." and "f16." meaning?

Accepted Solution Solved
Reply
Super Contributor
Posts: 297
Accepted Solution

What is "Best12." and "f16." meaning?

Hi, all:

 

I found those in the steps formating numbers.   What are those means?  Thanks.


Accepted Solutions
Solution
‎04-06-2016 11:08 AM
Trusted Advisor
Posts: 1,115

Re: What is "Best12." and "f16." meaning?

Both are SAS-supplied numeric formats. (And there are informats of these names as well.) Please see BESTw. Format and w.d Format (Fw.d is an alias of the latter) in the documentation. The width w can take integer values (from the range 1 - 32) including 12 and 16.

View solution in original post


All Replies
Super User
Posts: 6,972

Re: What is "Best12." and "f16." meaning?

BESTw. is the standard numeric format that will try to fit the number as best as it can, using any formatting that does this (ie scientific)

Could not find any documentation for the Fw. format, but it seems to be valid.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Solution
‎04-06-2016 11:08 AM
Trusted Advisor
Posts: 1,115

Re: What is "Best12." and "f16." meaning?

Both are SAS-supplied numeric formats. (And there are informats of these names as well.) Please see BESTw. Format and w.d Format (Fw.d is an alias of the latter) in the documentation. The width w can take integer values (from the range 1 - 32) including 12 and 16.

Super User
Posts: 10,550

Re: What is "Best12." and "f16." meaning?

The F is for Fixed in ancient terms related to formats. Some of us like the reminder that the display will take that many characters and that we did not incorrectly state the use of another format like Zw.d, Dw.p, Ew. and others.

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 3203 views
  • 3 likes
  • 4 in conversation