SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 614|回复: 1
打印 上一主题 下一主题

Question to 死猪头: How is band() working?

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2009-7-16 01:35:27 | 只看该作者

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.
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2009-7-16 08:59:47 | 只看该作者

Re: Question to 死猪头: How is band() working?

死猪头
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-2-5 21:31 , Processed in 0.113024 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表