SAS中文论坛

标题: Question to 死猪头: How is band() working? [打印本页]

作者: shiyiming    时间: 2009-7-16 01:35
标题: Question to 死猪头: How is band() working?
I posed a question two days ago about an output and a person call 死猪头 gave me a very neat code which works well. He used a function called band() and I don't quite understand this function. I have a few question to ask about this function.
Q1: array bases[5] _temporary_ (1 2 4 8 16);
Is 5 the length of the binary value? If the length of other binary value is 8, can I write this as :array bases[8] _temporary_ (1 2 4 8 16 32 64 128); ??
Q2: band(bases[_n_], binary_value)
Is binary_value the actural number not binary number. For example it should be 31 not 11111.
作者: shiyiming    时间: 2009-7-16 08:59
标题: Re: Question to 死猪头: How is band() working?
死猪头




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2