楼主: parnwang
2367 0

[求助]mod和modz的区别 [推广有奖]

  • 0关注
  • 2粉丝

博士生

3%

还不是VIP/贵宾

-

威望
0
论坛币
201 个
通用积分
1.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2568 点
帖子
209
精华
0
在线时间
88 小时
注册时间
2006-6-28
最后登录
2020-10-29

楼主
parnwang 发表于 2008-7-17 12:49:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

我在SAS HELP 上看到MOD和MODZ的介绍,没有看懂,其介绍如下:
Here are some comparisons between the MOD and MODZ functions:

The MOD function performs extra computations, called fuzzing, to return an exact zero when the result would otherwise differ from zero because of numerical error.

The MODZ function performs no fuzzing.

Both the MOD and MODZ functions return a missing value if the remainder cannot be computed to a precision of approximately three digits or more.

问题一:上文中 fuzzing 是什么意思啊?
问题二:下面的例子能否解释下?
谢谢
例子:
x2=mod(.3,-.1);
put x2 9.4;
 0.0000
 
xb=modz(.3,-.1);
put xb 9.4;
 0.1000
 
x4=mod(.9,.3);
put x4 24.20;
 0.00000000000000000000
 
xd=modz(.9,.3);
put xd 24.20;
 0.00000000000000005551
 

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Mod computations Approximate comparisons Computation 求助 Mod

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-24 18:48