SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 689|回复: 0
打印 上一主题 下一主题

请教mod和modz的差异

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2008-7-17 11:57:45 | 只看该作者

请教mod和modz的差异

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

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-2-4 21:40 , Processed in 0.068711 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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